<?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/mobile/sale/index.html.twig */
class __TwigTemplate_824381add1cebee8f52e118f099253c66a7720ab3a8fddba4784b6a25ede9a65 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'styles' => [$this, 'block_styles'],
'content' => [$this, 'block_content'],
'popup' => [$this, 'block_popup'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Slivki/mobile/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/mobile/sale/index.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/mobile/sale/index.html.twig"));
$this->parent = $this->loadTemplate("Slivki/mobile/base.html.twig", "Slivki/mobile/sale/index.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_styles($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", "styles"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
// line 4
echo " <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
";
// line 5
$this->displayParentBlock("styles", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
echo " <input id=\"categoryID\" type=\"hidden\" value=\"";
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", null, true);
echo "\"/>
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 12
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", null, true);
echo "\">Главная</a></li>
";
// line 13
if ((1 === 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))) {
// line 14
echo " ";
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); })()))) {
// line 15
echo " <li class=\"breadcrumb-item\">
<a href=\"";
// line 16
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, (isset($context["videoguideCategory"]) || array_key_exists("videoguideCategory", $context) ? $context["videoguideCategory"] : (function () { throw new RuntimeError('Variable "videoguideCategory" does not exist.', 16, $this->source); })()), "category", [], "any", false, false, false, 16), "getID", [], "method", false, false, false, 16)), "html", null, true);
echo "\">
";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 17), "getName", [], "method", false, false, false, 17), "html", null, true);
echo "
</a>
</li>
";
} else {
// line 21
echo " <li class=\"breadcrumb-item\"><a href=\"";
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", null, true);
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sales");
echo "\">Новости скидок</a></li>
";
}
// line 23
echo " ";
if (array_key_exists("parentCategory", $context)) {
// line 24
echo " <li class=\"breadcrumb-item\"><a href=\"";
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, (isset($context["parentCategory"]) || array_key_exists("parentCategory", $context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.', 24, $this->source); })()), "category", [], "any", false, false, false, 24), "getID", [], "method", false, false, false, 24)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 24), "getName", [], "method", false, false, false, 24), "html", null, true);
echo "</a></li>
";
}
// line 26
echo " <li class=\"breadcrumb-item text-muted\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 26), "getName", [], "method", false, false, false, 26), "html", null, true);
echo "</li>
";
} else {
// line 28
echo " <li class=\"breadcrumb-item text-muted\">Новости скидок</li>
";
}
// line 30
echo " </ol>
</nav>
<div class=\"content-title alt-font\">
<h1>";
// line 33
(((1 === 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->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 33), "getName", [], "method", false, false, false, 33), "html", null, true))) : (print ("Новости скидок")));
echo "</h1>
(";
// line 34
echo twig_escape_filter($this->env, (((1 === 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->env, twig_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", false, false, false, 34))) : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveSalesCount())), "html", null, true);
echo ")
</div>
";
// line 36
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); })()))) {
// line 37
echo " ";
$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); })())]));
// line 38
echo " ";
}
// line 39
echo "
";
// line 40
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); })()))) {
// line 41
echo " <div id=\"mustBeFixedContainer\">
<div id=\"mustBeFixed\" class=\"py-1\">
<ul class=\"capsule-menu\">
";
// line 44
ob_start();
// line 45
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 46
echo " <li>
<a href=\"";
// line 47
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, 47), "getID", [], "method", false, false, false, 47)), "html", null, true);
echo "\" ";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "category", [], "any", false, false, false, 47), "getID", [], "method", false, false, false, 47), (isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID", $context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.', 47, $this->source); })())))) ? ("class=\"active\"") : (""));
echo ">
";
// line 48
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, 48), "getName", [], "method", false, false, false, 48), "html", null, true);
echo " <span>";
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, 48), "getEntityCount", [], "method", false, false, false, 48), "html", null, true);
echo "</span>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo " ";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 44
echo twig_spaceless($___internal_parse_0_);
// line 53
echo " </ul>
</div>
</div>
";
} else {
// line 57
echo " ";
$this->loadTemplate("Slivki/mobile/sale/videoguide/menu.html.twig", "Slivki/mobile/sale/index.html.twig", 57)->display($context);
// line 58
echo " ";
}
// line 59
echo "
<div class=\"px-2 mb-2\">
";
// line 61
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); })()))) {
// line 62
echo " ";
$this->loadTemplate("Slivki/mobile/sale/category_map.html.twig", "Slivki/mobile/sale/index.html.twig", 62)->display($context);
// line 63
echo " ";
}
// line 64
echo "
";
// line 65
if (array_key_exists("mainHotFeed", $context)) {
// line 66
echo " <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
<h6 class=\"clearfix\">
<span class=\"blink text-slivki\">·</span>
<div class=\"d-inline-block alt-bold-font\">ГОРЯЧАЯ ЛЕНТА</div>
</h6>
<div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"";
// line 71
echo twig_escape_filter($this->env, twig_constant("Slivki\\Entity\\HotFeed::TYPE_MAIN_PAGE"), "html", null, true);
echo "\">
<div class=\"swiper-wrapper\">
";
// line 73
echo (isset($context["mainHotFeed"]) || array_key_exists("mainHotFeed", $context) ? $context["mainHotFeed"] : (function () { throw new RuntimeError('Variable "mainHotFeed" does not exist.', 73, $this->source); })());
echo "
</div>
<div class=\"swiper-button swiper-button-prev\"></div>
<div class=\"swiper-button swiper-button-next\"></div>
</div>
</div>
";
}
// line 80
echo "
";
// line 81
$this->loadTemplate("Slivki/mobile/sale/category.html.twig", "Slivki/mobile/sale/index.html.twig", 81)->display($context);
// line 82
echo "
";
// line 83
if ((0 === 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))) {
// line 84
echo " <img class=\"d-block my-3 mx-auto\" id='saleCategoryListLoader' src='/images/image-preview-ajax-loader.gif' alt='Загрузка...'/>
";
}
// line 86
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 89
public function block_popup($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", "popup"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));
// line 90
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
// line 91
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", false, false, false, 91)) {
// line 92
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/mobile/sale/index.html.twig", 92)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 93
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 96
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 97
echo " <script src=\"/js/swiper-js/swiper.min.js\"></script>
<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
<script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
";
// line 100
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/mobile/js/sales.min.js?v=";
// line 101
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", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/sale/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
{% block styles %}
<link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
{{ parent() }}
{% endblock %}
{% block content %}
<input id=\"categoryID\" type=\"hidden\" value=\"{{ currentCategoryID }}\"/>
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
<li class=\"breadcrumb-item\"><a href=\"{{ base_url }}\">Главная</a></li>
{% if currentCategoryID > 0 %}
{% if isChildOfVideoGuide is defined and isChildOfVideoGuide %}
<li class=\"breadcrumb-item\">
<a href=\"{{ getURL(\"Slivki:Sale:category\", videoguideCategory.category.getID()) }}\">
{{ videoguideCategory.category.getName() }}
</a>
</li>
{% else %}
<li class=\"breadcrumb-item\"><a href=\"{{ base_url }}{{ path('sales') }}\">Новости скидок</a></li>
{% endif %}
{% if parentCategory is defined %}
<li class=\"breadcrumb-item\"><a href=\"{{ getURL(\"Slivki:Sale:category\", parentCategory.category.getID()) }}\">{{ parentCategory.category.getName() }}</a></li>
{% endif %}
<li class=\"breadcrumb-item text-muted\">{{ currentCategory.category.getName() }}</li>
{% else %}
<li class=\"breadcrumb-item text-muted\">Новости скидок</li>
{% endif %}
</ol>
</nav>
<div class=\"content-title alt-font\">
<h1>{{ currentCategoryID > 0 ? currentCategory.category.getName() : 'Новости скидок' }}</h1>
({{ currentCategoryID > 0 ? currentCategory.entityList|length : getActiveSalesCount() }})
</div>
{% if firstBanner is defined and firstBanner %}
{% include 'Slivki/mobile/banner/banner.html.twig' with {'banner': firstBanner} only %}
{% endif %}
{% if isVideoguideCategory is not defined or not isVideoguideCategory %}
<div id=\"mustBeFixedContainer\">
<div id=\"mustBeFixed\" class=\"py-1\">
<ul class=\"capsule-menu\">
{% apply spaceless %}
{% for category in saleMenu %}
<li>
<a href=\"{{ getURL(\"Slivki:Sale:category\", category.category.getID()) }}\" {{ category.category.getID() == currentCategoryID ? 'class=\"active\"'}}>
{{ category.category.getName() }} <span>{{ category.category.getEntityCount() }}</span>
</a>
</li>
{% endfor %}
{% endapply %}
</ul>
</div>
</div>
{% else %}
{% include 'Slivki/mobile/sale/videoguide/menu.html.twig' %}
{% endif %}
<div class=\"px-2 mb-2\">
{% if isVideoguideCategory is not defined or not isVideoguideCategory %}
{% include 'Slivki/mobile/sale/category_map.html.twig' %}
{% endif %}
{% if mainHotFeed is defined %}
<div id=\"mainHotFeed\" class=\"px-1 position-relative\">
<h6 class=\"clearfix\">
<span class=\"blink text-slivki\">·</span>
<div class=\"d-inline-block alt-bold-font\">ГОРЯЧАЯ ЛЕНТА</div>
</h6>
<div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_MAIN_PAGE') }}\">
<div class=\"swiper-wrapper\">
{{ mainHotFeed|raw }}
</div>
<div class=\"swiper-button swiper-button-prev\"></div>
<div class=\"swiper-button swiper-button-next\"></div>
</div>
</div>
{% endif %}
{% include 'Slivki/mobile/sale/category.html.twig' %}
{% if currentCategoryID == 0 %}
<img class=\"d-block my-3 mx-auto\" id='saleCategoryListLoader' src='/images/image-preview-ajax-loader.gif' alt='Загрузка...'/>
{% endif %}
</div>
{% endblock %}
{% block popup %}
{{ parent() }}
{% if not app.user %}
{% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
{% endif %}
{% endblock %}
{% block javascripts %}
<script src=\"/js/swiper-js/swiper.min.js\"></script>
<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
<script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
{{ parent() }}
<script src=\"/mobile/js/sales.min.js?v={{ mobile_sales_js_version }}\"></script>
{% endblock %}", "Slivki/mobile/sale/index.html.twig", "/mnt/data/virtwww/test/templates/Slivki/mobile/sale/index.html.twig");
}
}