<?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/index.html.twig */
class __TwigTemplate_7be20ac6bfd69464f454c666c9f7a8c5874966beffd0be811f93793c9e76c58f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'styles' => [$this, 'block_styles'],
'topContent' => [$this, 'block_topContent'],
'content' => [$this, 'block_content'],
'popup' => [$this, 'block_popup'],
'javascripts' => [$this, 'block_javascripts'],
'RTBHouse' => [$this, 'block_RTBHouse'],
];
}
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/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/index.html.twig"));
$this->parent = $this->loadTemplate("Slivki/mobile/base.html.twig", "Slivki/mobile/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_topContent($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", "topContent"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "topContent"));
// line 9
echo " ";
$this->loadTemplate((("Slivki/mobile" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path", $context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.', 9, $this->source); })())) . "/top_block.html.twig"), "Slivki/mobile/index.html.twig", 9)->display($context);
// line 10
echo " ";
if ((0 !== twig_compare((isset($context["mainHotFeed"]) || array_key_exists("mainHotFeed", $context) ? $context["mainHotFeed"] : (function () { throw new RuntimeError('Variable "mainHotFeed" does not exist.', 10, $this->source); })()), ""))) {
// line 11
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 16
echo twig_escape_filter($this->env, twig_constant("Slivki\\Entity\\HotFeed::TYPE_MAIN_PAGE"), "html", null, true);
echo "\">
<div class=\"swiper-wrapper\">
";
// line 18
echo (isset($context["mainHotFeed"]) || array_key_exists("mainHotFeed", $context) ? $context["mainHotFeed"] : (function () { throw new RuntimeError('Variable "mainHotFeed" does not exist.', 18, $this->source); })());
echo "
</div>
<div class=\"swiper-button swiper-button-prev\"></div>
<div class=\"swiper-button swiper-button-next\"></div>
</div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 27
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 28
echo " <div class=\"content-title alt-font text-slivki\" data-html=\"true\" data-original-title=\"Промокоды<br> Уникальные предложения!<br> Лучшие цены!<br>\" data-placement=\"bottom\" data-toggle=\"tooltip\">
<h1>";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["metaInfo"]) || array_key_exists("metaInfo", $context) ? $context["metaInfo"] : (function () { throw new RuntimeError('Variable "metaInfo" does not exist.', 29, $this->source); })()), "title", [], "any", false, false, false, 29), "html", null, true);
echo "</h1>
";
// line 30
((( !array_key_exists("smallCity", $context) || !(isset($context["smallCity"]) || array_key_exists("smallCity", $context) ? $context["smallCity"] : (function () { throw new RuntimeError('Variable "smallCity" does not exist.', 30, $this->source); })()))) ? (print (twig_escape_filter($this->env, ((" (" . $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveOffersCount((isset($context["cityID"]) || array_key_exists("cityID", $context) ? $context["cityID"] : (function () { throw new RuntimeError('Variable "cityID" does not exist.', 30, $this->source); })()))) . ")"), "html", null, true))) : (print ("")));
echo "
</div>
<div class=\"categories-list";
// line 32
echo (((0 === twig_compare(twig_length_filter($this->env, (isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList", $context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.', 32, $this->source); })())), 1))) ? (" one-category-city") : (""));
echo "\">
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categoryBoxList"]) || array_key_exists("categoryBoxList", $context) ? $context["categoryBoxList"] : (function () { throw new RuntimeError('Variable "categoryBoxList" does not exist.', 33, $this->source); })()));
foreach ($context['_seq'] as $context["categoryID"] => $context["categoryBox"]) {
// line 34
echo " ";
$context["categoryBanner"] = (((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "user", [], "any", false, false, false, 34) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "user", [], "any", false, false, false, 34), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 34))) ? ("") : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryBanner( // line 35
$context["categoryID"])));
// line 36
echo " ";
echo twig_replace_filter($context["categoryBox"], ["<div id=\"categoryBannerPlaceholder\"></div>" => (isset($context["categoryBanner"]) || array_key_exists("categoryBanner", $context) ? $context["categoryBanner"] : (function () { throw new RuntimeError('Variable "categoryBanner" does not exist.', 36, $this->source); })())]);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['categoryID'], $context['categoryBox'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo " </div>
";
// line 39
if ((1 === twig_compare(twig_length_filter($this->env, (isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList", $context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.', 39, $this->source); })())), 1))) {
// line 40
echo " <div id=\"mainPageLoader\" class=\"w-100\"><img class=\"d-block d-none mx-auto my-3\" src=\"/images/preloader-mob.svg\" width=\"30\" height=\"30\"></div>
";
}
// line 42
echo "
";
// line 43
if ((0 === twig_compare((isset($context["cityID"]) || array_key_exists("cityID", $context) ? $context["cityID"] : (function () { throw new RuntimeError('Variable "cityID" does not exist.', 43, $this->source); })()), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID")))) {
// line 44
echo " <div id=\"mainBottomBlock\" class=\"my-1 w-100\">
<div class=\"row no-gutters\">
<div class=\"col-6\">
<a id=\"moreCategories\" href=\"#\">Еще акции<br/>с промокодами</a>
</div>
<div class=\"col-6\">
<a class=\"mr-0\" href=\"";
// line 50
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sales");
echo "\">Новости<br/>скидок</a>
</div>
</div>
<div class=\"row no-gutters\">
<div class=\"col-4\">
<a class=\"text-white\" style=\"background-image: url(/images/landing_photoguides.jpg)\"
href=\"";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_SALE_CATEGORY"), twig_constant("Slivki\\Entity\\Category::PHOTOGUIDE_SALE_CATEGORY_ID")), "html", null, true);
echo "\">Фотогиды</a>
</div>
<div class=\"col-4\">
<a class=\"text-white\" style=\"background-image: url(/images/landing_fliers.jpg)\"
href=\"";
// line 60
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("flierLanding");
echo "\">Листовки</a>
</div>
<div class=\"col-4\">
<a class=\"mr-0 text-white\" style=\"background-image: url(/images/landing_sushi.jpg)\"
href=\"/eda/sushi\">Суши</a>
</div>
</div>
";
// line 67
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 67, $this->source); })()), "user", [], "any", false, false, false, 67)) {
// line 68
echo " <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.', 68, $this->source); })()), "html", null, true);
echo "/WatchList\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
";
} else {
// line 70
echo " <a data-toggle=\"modal\" data-target=\".modal-auth\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
";
}
// line 72
echo " </div>
";
} elseif ((1 === twig_compare(twig_length_filter($this->env, // line 73
(isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList", $context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.', 73, $this->source); })())), 2))) {
// line 74
echo " <div class=\"px-2 w-100\">
<a id=\"moreCategories\" class=\"btn bg-slivki btn-block my-2 more-categories-button\" href=\"#\">Еще категории</a>
</div>
";
}
// line 78
echo "
<input id=\"topLevelCategoryIDList\" type=\"hidden\" value=\"";
// line 79
echo twig_escape_filter($this->env, json_encode((isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList", $context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.', 79, $this->source); })())), "html", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 83
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 84
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
// line 85
$this->loadTemplate("Slivki/mobile/select_city.html.twig", "Slivki/mobile/index.html.twig", 85)->display($context);
// line 86
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getMainMenu($this->env, false, false);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 89
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 90
echo " <script src=\"/js/swiper-js/swiper.min.js\"></script>
";
// line 91
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/mobile/js/index.js?v=4\"></script>
";
// line 93
if ((array_key_exists("smallCity", $context) && (isset($context["smallCity"]) || array_key_exists("smallCity", $context) ? $context["smallCity"] : (function () { throw new RuntimeError('Variable "smallCity" does not exist.', 93, $this->source); })()))) {
// line 94
echo " <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
<script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
<script type=\"module\" src=\"/mobile/js/category.min.js?v=";
// line 96
echo twig_escape_filter($this->env, (isset($context["mobile_category_js_version"]) || array_key_exists("mobile_category_js_version", $context) ? $context["mobile_category_js_version"] : (function () { throw new RuntimeError('Variable "mobile_category_js_version" does not exist.', 96, $this->source); })()), "html", null, true);
echo "\"></script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 100
public function block_RTBHouse($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", "RTBHouse"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "RTBHouse"));
// line 101
echo " <script>
try{ (function() {
var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
var ifr = document.createElement(\"iframe\"),
sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
ifrSrc = \"https://\"+prefix+\"creativecdn.com/tags?type=iframe\", tmstmp = encodeURIComponent(\"\" + Date.now()); for(var i=0; i<rtbhTags.length; i++) {ifrSrc += \"&id=\" + encodeURIComponent(rtbhTags[i]);}
ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
})();} catch(e) {} </script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 341 => 101, 331 => 100, 318 => 96, 314 => 94, 312 => 93, 307 => 91, 304 => 90, 294 => 89, 281 => 86, 279 => 85, 274 => 84, 264 => 83, 251 => 79, 248 => 78, 242 => 74, 240 => 73, 237 => 72, 233 => 70, 227 => 68, 225 => 67, 215 => 60, 208 => 56, 199 => 50, 191 => 44, 189 => 43, 186 => 42, 182 => 40, 180 => 39, 177 => 38, 168 => 36, 166 => 35, 164 => 34, 160 => 33, 156 => 32, 151 => 30, 147 => 29, 144 => 28, 134 => 27, 116 => 18, 111 => 16, 104 => 11, 101 => 10, 98 => 9, 88 => 8, 76 => 5, 73 => 4, 63 => 3, 40 => 1,);
}
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 topContent %}
{% include \"Slivki/mobile#{regional_template_path}/top_block.html.twig\" %}
{% if mainHotFeed != '' %}
<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 %}
{% endblock %}
{% block content %}
<div class=\"content-title alt-font text-slivki\" data-html=\"true\" data-original-title=\"Промокоды<br> Уникальные предложения!<br> Лучшие цены!<br>\" data-placement=\"bottom\" data-toggle=\"tooltip\">
<h1>{{ metaInfo.title }}</h1>
{{ smallCity is not defined or not smallCity ? ' (' ~ getActiveOffersCount(cityID) ~ ')' }}
</div>
<div class=\"categories-list{{ topLevelCategoryIDList|length == 1 ? ' one-category-city' }}\">
{% for categoryID, categoryBox in categoryBoxList %}
{% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
: getCategoryBanner(categoryID) %}
{{ categoryBox|replace({'<div id=\"categoryBannerPlaceholder\"></div>': categoryBanner})|raw }}
{% endfor %}
</div>
{% if topLevelCategoryIDList|length > 1 %}
<div id=\"mainPageLoader\" class=\"w-100\"><img class=\"d-block d-none mx-auto my-3\" src=\"/images/preloader-mob.svg\" width=\"30\" height=\"30\"></div>
{% endif %}
{% if cityID == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
<div id=\"mainBottomBlock\" class=\"my-1 w-100\">
<div class=\"row no-gutters\">
<div class=\"col-6\">
<a id=\"moreCategories\" href=\"#\">Еще акции<br/>с промокодами</a>
</div>
<div class=\"col-6\">
<a class=\"mr-0\" href=\"{{ path('sales') }}\">Новости<br/>скидок</a>
</div>
</div>
<div class=\"row no-gutters\">
<div class=\"col-4\">
<a class=\"text-white\" style=\"background-image: url(/images/landing_photoguides.jpg)\"
href=\"{{ getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_SALE_CATEGORY'), constant('Slivki\\\\Entity\\\\Category::PHOTOGUIDE_SALE_CATEGORY_ID')) }}\">Фотогиды</a>
</div>
<div class=\"col-4\">
<a class=\"text-white\" style=\"background-image: url(/images/landing_fliers.jpg)\"
href=\"{{ path('flierLanding') }}\">Листовки</a>
</div>
<div class=\"col-4\">
<a class=\"mr-0 text-white\" style=\"background-image: url(/images/landing_sushi.jpg)\"
href=\"/eda/sushi\">Суши</a>
</div>
</div>
{% if app.user %}
<a href=\"{{ base_url }}/WatchList\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
{% else %}
<a data-toggle=\"modal\" data-target=\".modal-auth\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
{% endif %}
</div>
{% elseif topLevelCategoryIDList|length > 2 %}
<div class=\"px-2 w-100\">
<a id=\"moreCategories\" class=\"btn bg-slivki btn-block my-2 more-categories-button\" href=\"#\">Еще категории</a>
</div>
{% endif %}
<input id=\"topLevelCategoryIDList\" type=\"hidden\" value=\"{{ topLevelCategoryIDList|json_encode }}\">
{% endblock %}
{% block popup %}
{{ parent() }}
{% include 'Slivki/mobile/select_city.html.twig' %}
{{ getMainMenu(false, false) }}
{% endblock %}
{% block javascripts %}
<script src=\"/js/swiper-js/swiper.min.js\"></script>
{{ parent() }}
<script src=\"/mobile/js/index.js?v=4\"></script>
{% if smallCity is defined and smallCity %}
<script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
<script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
<script type=\"module\" src=\"/mobile/js/category.min.js?v={{ mobile_category_js_version }}\"></script>
{% endif %}
{% endblock %}
{% block RTBHouse %}
<script>
try{ (function() {
var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
var ifr = document.createElement(\"iframe\"),
sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
ifrSrc = \"https://\"+prefix+\"creativecdn.com/tags?type=iframe\", tmstmp = encodeURIComponent(\"\" + Date.now()); for(var i=0; i<rtbhTags.length; i++) {ifrSrc += \"&id=\" + encodeURIComponent(rtbhTags[i]);}
ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
})();} catch(e) {} </script>
{% endblock %}", "Slivki/mobile/index.html.twig", "/mnt/data/virtwww/dima/templates/Slivki/mobile/index.html.twig");
}
}