<?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/details.html.twig */
class __TwigTemplate_adba060eecd8479236cbd14c75f821102ae21e2138ae1eb865a42e8f5c7f2db6 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/details.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/details.html.twig"));
$this->parent = $this->loadTemplate("Slivki/mobile/base.html.twig", "Slivki/mobile/sale/details.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=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\" />
";
// line 6
$this->displayParentBlock("styles", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
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 10
echo " ";
if (((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 10, $this->source); })()) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion", $context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.', 10, $this->source); })()), "getDescriptionBackgroundUrl", [], "method", false, false, false, 10), "")))) {
// line 11
echo " ";
$this->loadTemplate("Slivki/mobile/breadcrumbs.html.twig", "Slivki/mobile/sale/details.html.twig", 11)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 11, $this->source); })())]));
// line 12
echo " ";
}
// line 13
echo " <div id=\"saleDetails\" class=\"p-2\">
<input type=\"hidden\" id=\"entityID\" value=\"";
// line 14
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 14, $this->source); })()), "getID", [], "method", false, false, false, 14), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"saleVersionID\" value=\"";
// line 15
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion", $context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.', 15, $this->source); })()), "getID", [], "method", false, false, false, 15), "html", null, true);
echo "\">
";
// line 16
if (twig_get_attribute($this->env, $this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion", $context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.', 16, $this->source); })()), "getDescriptionTitleBackgroundUrl", [], "method", false, false, false, 16)) {
// line 17
echo " <div id=\"saleTitleBlock\" class=\"image-with-share-btn\">
<img src=\"";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion", $context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.', 18, $this->source); })()), "getDescriptionTitleBackgroundUrl", [], "method", false, false, false, 18), "html", null, true);
echo "\" />
<h1>
";
// line 20
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 20, $this->source); })()), "getID", [], "method", false, false, false, 20), 287031))) {
// line 21
echo " Стань агентом банка! <br> Рекомендуй другу карточку <nobr>«1-2-3»</nobr> и оба получите по <nobr>5 рублей!</nobr>
";
} else {
// line 23
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 23, $this->source); })()), "getTitle", [], "method", false, false, false, 23), "html", null, true);
echo "
";
}
// line 25
echo " </h1>
<a href=\"/am-fotogid\">Фотогиды</a>
<div class=\"slivki-share-block-open\"><i class=\"slivki-icon-share\"></i></div>
<div id=\"saleTitleBlockInfo\">
";
// line 29
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 29, $this->source); })()), "getSince", [], "method", false, false, false, 29), "d.m.Y"), "html", null, true);
echo "
<i class=\"slivki-icon-eye\"></i>";
// line 30
echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount", $context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.', 30, $this->source); })()), "html", null, true);
echo "
";
// line 31
if ((1 === twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 31, $this->source); })()), 5))) {
// line 32
echo " <i class=\"slivki-icon-comment-empty\"></i>";
echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 32, $this->source); })()), "html", null, true);
echo "
";
}
// line 34
echo " </div>
</div>
";
} else {
// line 37
echo " <div class=\"text-muted text-center\">
";
// line 38
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 38, $this->source); })()), "getSince", [], "method", false, false, false, 38), "d.m.Y"), "html", null, true);
echo "
<i class=\"slivki-icon-eye\"></i>";
// line 39
echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount", $context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.', 39, $this->source); })()), "html", null, true);
echo "
";
// line 40
if ((1 === twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 40, $this->source); })()), 5))) {
// line 41
echo " <i class=\"slivki-icon-comment-empty\"></i>";
echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 41, $this->source); })()), "html", null, true);
echo "
";
}
// line 43
echo " ";
$context["ratingWithCount"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getEntityRatingWithCount(twig_constant("Slivki\\Entity\\Category::SALE_CATEGORY_ID"), twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 43, $this->source); })()), "getID", [], "method", false, false, false, 43));
// line 44
echo " ";
$context["ratingPercentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["ratingWithCount"]) || array_key_exists("ratingWithCount", $context) ? $context["ratingWithCount"] : (function () { throw new RuntimeError('Variable "ratingWithCount" does not exist.', 44, $this->source); })()), "rating", [], "any", false, false, false, 44) * 100) / 5);
// line 45
echo " <div class=\"star-ratings-css align-self-center\">
<div class=\"star-ratings-css-top\" style=\"width: ";
// line 46
echo twig_escape_filter($this->env, (isset($context["ratingPercentage"]) || array_key_exists("ratingPercentage", $context) ? $context["ratingPercentage"] : (function () { throw new RuntimeError('Variable "ratingPercentage" does not exist.', 46, $this->source); })()), "html", null, true);
echo "%\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
<div class=\"star-ratings-css-bottom\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
</div>
<div class=\"d-inline-block align-self-center\">(";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ratingWithCount"]) || array_key_exists("ratingWithCount", $context) ? $context["ratingWithCount"] : (function () { throw new RuntimeError('Variable "ratingWithCount" does not exist.', 49, $this->source); })()), "amount", [], "any", false, false, false, 49), "html", null, true);
echo ")</div>
</div>
";
}
// line 52
echo " ";
echo (isset($context["descriptions"]) || array_key_exists("descriptions", $context) ? $context["descriptions"] : (function () { throw new RuntimeError('Variable "descriptions" does not exist.', 52, $this->source); })());
echo "
";
// line 53
if (twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 53, $this->source); })()), "isShowMap", [], "method", false, false, false, 53)) {
// line 54
echo " <div id=\"saleGeoLocationData\" data-json=\"";
echo twig_escape_filter($this->env, (isset($context["saleGeoLocationData"]) || array_key_exists("saleGeoLocationData", $context) ? $context["saleGeoLocationData"] : (function () { throw new RuntimeError('Variable "saleGeoLocationData" does not exist.', 54, $this->source); })()), "html", null, true);
echo "\"></div>
<div id=\"saleDetailsMapWrapper\" class=\"category-map-wrapper\">
<div id=\"saleDetailsMap\" class=\"category-map\"></div>
<div id=\"zoomIn\"></div>
<div id=\"zoomOut\"></div>
<a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
<a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
<a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
</div>
";
}
// line 64
echo " <div class=\"text-muted\">
";
// line 65
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 65, $this->source); })()), "getSince", [], "method", false, false, false, 65), "d.m.Y"), "html", null, true);
echo " <i class=\"slivki-icon-eye\"></i>";
echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount", $context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.', 65, $this->source); })()), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, (isset($context["dayVisitCount"]) || array_key_exists("dayVisitCount", $context) ? $context["dayVisitCount"] : (function () { throw new RuntimeError('Variable "dayVisitCount" does not exist.', 65, $this->source); })()), "html", null, true);
echo " за сутки)
</div>
";
// line 67
$this->loadTemplate("Slivki/mobile/sale/vote_entity_block.html.twig", "Slivki/mobile/sale/details.html.twig", 67)->display(twig_array_merge($context, ["pleaseVoteText" => "Оцените, пожалуйста, эту статью:", "additionalClass" => ""]));
// line 69
echo " ";
if ((1 === twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 69, $this->source); })()), 0))) {
// line 70
echo " <a id=\"showSaleCommentsButton\" href=\"#commentsBlock\" data-animate-time=\"1500\"
class=\"smooth-scroll btn btn-block btn-success bg-slivki text-dark border-0 mt-2\">Отзывы (";
// line 71
echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 71, $this->source); })()), "html", null, true);
echo ")</a>
";
} else {
// line 73
echo " <a id=\"showSaleCommentsButton\" href=\"/ostavit-otziv/";
echo twig_escape_filter($this->env, twig_constant("Slivki\\Entity\\Comment::TYPE_SALE_COMMENT"), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 73, $this->source); })()), "getID", [], "method", false, false, false, 73), "html", null, true);
echo "\"
class=\"btn btn-block btn-success bg-slivki text-dark border-0 mt-2 color-white\">Добавить отзыв</a>
";
}
// line 76
echo " ";
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.', 76, $this->source); })()), "user", [], "any", false, false, false, 76) || !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.', 76, $this->source); })()), "user", [], "any", false, false, false, 76), "getAcceptNewsletter", [], "method", false, false, false, 76))) {
// line 77
echo " <a id=\"subscribeBtn\" href=\"";
echo ((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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77)) ? ("#") : ("/subscribe/mobile"));
echo "\" data-email=\"";
((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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77)) ? (print (twig_escape_filter($this->env, 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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77), "getEmail", [], "method", false, false, false, 77), "html", null, true))) : (print ("")));
echo "\"
class=\"btn btn-dark btn-block mt-2 px-1\"><img class=\"fixed-size\" src=\"/images/symbol_of_wealth.png\">
Подписаться на рассылку и стать богаче!</a>
<div id=\"subscribeMessage\" class=\"mt-2 text-center\"></div>
";
}
// line 82
echo "
";
// line 83
if ((isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 83, $this->source); })())) {
// line 84
echo " <p class=\"text-muted mt-2\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 84, $this->source); })()), "getLegalEntity", [], "method", false, false, false, 84), "html", null, true);
echo " УНП: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 84, $this->source); })()), "getTaxID", [], "method", false, false, false, 84), "html", null, true);
echo "</p>
";
}
// line 86
echo " <div id=\"readabilityCheckpoint\"></div>
<div class=\"mt-2\">
<a class=\"text-dark\" href=\"";
// line 88
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.', 88, $this->source); })()), "html", null, true);
echo "\">Главная</a>
";
// line 89
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 89, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 90
echo " <i class=\"slivki-icon-angle-right\"></i> <a class=\"text-dark\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryURL($context["category"]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "method", false, false, false, 90), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
echo " <i class=\"slivki-icon-angle-right\"></i> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sale"]) || array_key_exists("sale", $context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.', 92, $this->source); })()), "getTitle", [], "method", false, false, false, 92), "html", null, true);
echo "
</div>
</div>
<div class=\"row m-2 no-gutters\">
";
// line 97
$this->loadTemplate("Slivki/mobile/sale/related_sales.html.twig", "Slivki/mobile/sale/details.html.twig", 97)->display(twig_array_merge($context, ["title" => "Еще по теме", "saleList" => twig_last($this->env, // line 98
(isset($context["relatedSales"]) || array_key_exists("relatedSales", $context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.', 98, $this->source); })()))]));
// line 99
echo " ";
$this->loadTemplate("Slivki/mobile/sale/related_sales.html.twig", "Slivki/mobile/sale/details.html.twig", 99)->display(twig_array_merge($context, ["title" => "Популярные", "saleList" => twig_get_attribute($this->env, $this->source, // line 100
(isset($context["relatedSales"]) || array_key_exists("relatedSales", $context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.', 100, $this->source); })()), twig_constant("Slivki\\Repository\\SaleRepository::POPULAR_SALE_CATEGORY_ID"), [], "array", false, false, false, 100)]));
// line 101
echo " ";
$this->loadTemplate("Slivki/mobile/sale/related_sales.html.twig", "Slivki/mobile/sale/details.html.twig", 101)->display(twig_array_merge($context, ["title" => "Смотрите также", "saleList" => twig_get_attribute($this->env, $this->source, // line 102
(isset($context["relatedSales"]) || array_key_exists("relatedSales", $context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.', 102, $this->source); })()), twig_constant("Slivki\\Entity\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID"), [], "array", false, false, false, 102)]));
// line 103
echo " </div>
<div id=\"commentsBlock\" class=\"m-2 d-none\"></div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 108
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 109
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
// line 110
$this->loadTemplate("Slivki/mobile/share_block.html.twig", "Slivki/mobile/sale/details.html.twig", 110)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 113
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 114
echo " <script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
<script src=\"https://yastatic.net/share2/share.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
<script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
";
// line 118
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/mobile/js/sale.js?v=14\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/sale/details.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 385 => 118, 379 => 114, 369 => 113, 359 => 110, 354 => 109, 344 => 108, 331 => 103, 329 => 102, 327 => 101, 325 => 100, 323 => 99, 321 => 98, 320 => 97, 311 => 92, 300 => 90, 296 => 89, 292 => 88, 288 => 86, 280 => 84, 278 => 83, 275 => 82, 264 => 77, 261 => 76, 252 => 73, 247 => 71, 244 => 70, 241 => 69, 239 => 67, 230 => 65, 227 => 64, 213 => 54, 211 => 53, 206 => 52, 200 => 49, 194 => 46, 191 => 45, 188 => 44, 185 => 43, 179 => 41, 177 => 40, 173 => 39, 169 => 38, 166 => 37, 161 => 34, 155 => 32, 153 => 31, 149 => 30, 145 => 29, 139 => 25, 133 => 23, 129 => 21, 127 => 20, 122 => 18, 119 => 17, 117 => 16, 113 => 15, 109 => 14, 106 => 13, 103 => 12, 100 => 11, 97 => 10, 87 => 9, 75 => 6, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
{% block styles %}
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\" />
{{ parent() }}
{% endblock %}
{% block content %}
{% if parentCategoryList and saleVersion.getDescriptionBackgroundUrl() == '' %}
{% include 'Slivki/mobile/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList } only %}
{% endif %}
<div id=\"saleDetails\" class=\"p-2\">
<input type=\"hidden\" id=\"entityID\" value=\"{{ sale.getID() }}\">
<input type=\"hidden\" id=\"saleVersionID\" value=\"{{ saleVersion.getID() }}\">
{% if saleVersion.getDescriptionTitleBackgroundUrl() %}
<div id=\"saleTitleBlock\" class=\"image-with-share-btn\">
<img src=\"{{ saleVersion.getDescriptionTitleBackgroundUrl() }}\" />
<h1>
{% if sale.getID() == 287031 %}
Стань агентом банка! <br> Рекомендуй другу карточку <nobr>«1-2-3»</nobr> и оба получите по <nobr>5 рублей!</nobr>
{% else %}
{{ sale.getTitle() }}
{% endif %}
</h1>
<a href=\"/am-fotogid\">Фотогиды</a>
<div class=\"slivki-share-block-open\"><i class=\"slivki-icon-share\"></i></div>
<div id=\"saleTitleBlockInfo\">
{{ sale.getSince()|date('d.m.Y') }}
<i class=\"slivki-icon-eye\"></i>{{ visitCount }}
{% if commentsAmount > 5 %}
<i class=\"slivki-icon-comment-empty\"></i>{{ commentsAmount }}
{% endif %}
</div>
</div>
{% else %}
<div class=\"text-muted text-center\">
{{ sale.getSince()|date('d.m.Y') }}
<i class=\"slivki-icon-eye\"></i>{{ visitCount }}
{% if commentsAmount > 5 %}
<i class=\"slivki-icon-comment-empty\"></i>{{ commentsAmount }}
{% endif %}
{% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::SALE_CATEGORY_ID'), sale.getID()) %}
{% set ratingPercentage = ratingWithCount.rating * 100 / 5 %}
<div class=\"star-ratings-css align-self-center\">
<div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
<div class=\"star-ratings-css-bottom\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
</div>
<div class=\"d-inline-block align-self-center\">({{ ratingWithCount.amount }})</div>
</div>
{% endif %}
{{ descriptions | raw }}
{% if sale.isShowMap() %}
<div id=\"saleGeoLocationData\" data-json=\"{{ saleGeoLocationData }}\"></div>
<div id=\"saleDetailsMapWrapper\" class=\"category-map-wrapper\">
<div id=\"saleDetailsMap\" class=\"category-map\"></div>
<div id=\"zoomIn\"></div>
<div id=\"zoomOut\"></div>
<a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
<a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
<a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
</div>
{% endif %}
<div class=\"text-muted\">
{{ sale.getSince()|date('d.m.Y') }} <i class=\"slivki-icon-eye\"></i>{{ visitCount }} ({{ dayVisitCount }} за сутки)
</div>
{% include 'Slivki/mobile/sale/vote_entity_block.html.twig'
with {'pleaseVoteText': 'Оцените, пожалуйста, эту статью:', 'additionalClass': ''} %}
{% if commentsAmount > 0 %}
<a id=\"showSaleCommentsButton\" href=\"#commentsBlock\" data-animate-time=\"1500\"
class=\"smooth-scroll btn btn-block btn-success bg-slivki text-dark border-0 mt-2\">Отзывы ({{ commentsAmount }})</a>
{% else %}
<a id=\"showSaleCommentsButton\" href=\"/ostavit-otziv/{{ constant('Slivki\\\\Entity\\\\Comment::TYPE_SALE_COMMENT') }}/{{ sale.getID() }}\"
class=\"btn btn-block btn-success bg-slivki text-dark border-0 mt-2 color-white\">Добавить отзыв</a>
{% endif %}
{% if not app.user or not app.user.getAcceptNewsletter() %}
<a id=\"subscribeBtn\" href=\"{{ app.user ? '#' : '/subscribe/mobile' }}\" data-email=\"{{ app.user ? app.user.getEmail() : '' }}\"
class=\"btn btn-dark btn-block mt-2 px-1\"><img class=\"fixed-size\" src=\"/images/symbol_of_wealth.png\">
Подписаться на рассылку и стать богаче!</a>
<div id=\"subscribeMessage\" class=\"mt-2 text-center\"></div>
{% endif %}
{% if director %}
<p class=\"text-muted mt-2\">{{ director.getLegalEntity()}} УНП: {{ director.getTaxID() }}</p>
{% endif %}
<div id=\"readabilityCheckpoint\"></div>
<div class=\"mt-2\">
<a class=\"text-dark\" href=\"{{ base_url }}\">Главная</a>
{% for category in parentCategoryList %}
<i class=\"slivki-icon-angle-right\"></i> <a class=\"text-dark\" href=\"{{ getCategoryURL(category) }}\">{{ category.getName() }}</a>
{% endfor %}
<i class=\"slivki-icon-angle-right\"></i> {{ sale.getTitle() }}
</div>
</div>
<div class=\"row m-2 no-gutters\">
{% include 'Slivki/mobile/sale/related_sales.html.twig'
with {'title': 'Еще по теме', 'saleList': relatedSales|last} %}
{% include 'Slivki/mobile/sale/related_sales.html.twig'
with {'title': 'Популярные', 'saleList': relatedSales[constant('Slivki\\\\Repository\\\\SaleRepository::POPULAR_SALE_CATEGORY_ID')] } %}
{% include 'Slivki/mobile/sale/related_sales.html.twig'
with {'title': 'Смотрите также', 'saleList': relatedSales[constant('Slivki\\\\Entity\\\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID')]} %}
</div>
<div id=\"commentsBlock\" class=\"m-2 d-none\"></div>
{% endblock %}
{% block popup %}
{{ parent() }}
{% include 'Slivki/mobile/share_block.html.twig' %}
{% endblock %}
{% block javascripts %}
<script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
<script src=\"https://yastatic.net/share2/share.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
<script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
{{ parent() }}
<script src=\"/mobile/js/sale.js?v=14\"></script>
{% endblock %}", "Slivki/mobile/sale/details.html.twig", "/mnt/data/virtwww/slivki/templates/Slivki/mobile/sale/details.html.twig");
}
}