<?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/offers/teaser.html.twig */
class __TwigTemplate_1023ca9827bd9833d8f2a8dad53633ae50b8d543b8577d36b7c0b49c084d14ca extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'imageDiv' => [$this, 'block_imageDiv'],
'favorite' => [$this, 'block_favorite'],
];
}
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/offers/teaser.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/offers/teaser.html.twig"));
// line 1
$context["teaserAnchorClass"] = "";
// line 2
if (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 2, $this->source); })()), "isHideNoveltyLabel", [], "method", false, false, false, 2) && (0 >= twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 2, $this->source); })()), "getActiveSince", [], "method", false, false, false, 2), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 2), "days", [], "any", false, false, false, 2), 5)))) {
// line 3
echo " ";
$context["teaserAnchorClass"] = "newProduct";
}
// line 5
$context["offerURL"] = ((array_key_exists("urlWithDomain", $context)) ? ((isset($context["urlWithDomain"]) || array_key_exists("urlWithDomain", $context) ? $context["urlWithDomain"] : (function () { throw new RuntimeError('Variable "urlWithDomain" does not exist.', 5, $this->source); })())) : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Default:details", twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 5, $this->source); })()), "getID", [], "method", false, false, false, 5), true)));
// line 6
$context["teaserStatDays"] = 30;
// line 7
$context["daysFromStrart"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_date_converter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 7, $this->source); })()), "getActiveSince", [], "any", false, false, false, 7))), "diff", [0 => twig_date_converter($this->env, "now")], "method", false, false, false, 7), "days", [], "any", false, false, false, 7);
// line 8
$context["daysFromStrart"] = (((-1 === twig_compare((isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 8, $this->source); })()), (isset($context["teaserStatDays"]) || array_key_exists("teaserStatDays", $context) ? $context["teaserStatDays"] : (function () { throw new RuntimeError('Variable "teaserStatDays" does not exist.', 8, $this->source); })())))) ? ((isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 8, $this->source); })())) : ((isset($context["teaserStatDays"]) || array_key_exists("teaserStatDays", $context) ? $context["teaserStatDays"] : (function () { throw new RuntimeError('Variable "teaserStatDays" does not exist.', 8, $this->source); })())));
// line 9
$context["daysFromStrart"] = (((0 === twig_compare((isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 9, $this->source); })()), 0))) ? (1) : ((isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 9, $this->source); })())));
// line 10
echo "
";
// line 11
if ((array_key_exists("isMailing", $context) && (isset($context["isMailing"]) || array_key_exists("isMailing", $context) ? $context["isMailing"] : (function () { throw new RuntimeError('Variable "isMailing" does not exist.', 11, $this->source); })()))) {
// line 12
echo " <input type=\"checkbox\" class=\"marketActionCheckBox\"/>
<input type=\"checkbox\" style=\"float: left;\" name=\"mainTeaser\" class=\"marketActionRadio\"/>
";
}
// line 15
echo "
<div class=\"stock-group-item\" id='action";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 16, $this->source); })()), "getID", [], "method", false, false, false, 16), "html", null, true);
echo "' data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 16, $this->source); })()), "getID", [], "method", false, false, false, 16), "html", null, true);
echo "\" data-pixel=";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 16, $this->source); })()), "getID", [], "method", false, false, false, 16), twig_constant("Slivki\\Entity\\Offer::BETERA_OFFER_ID")))) ? ("https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464043&evt_t=render&ad_type=banner&rnd=%system.random%") : (""));
echo ">
";
// line 17
$this->displayBlock('imageDiv', $context, $blocks);
// line 28
echo " <img class=\"image\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 28, $this->source); })()), "getTeaserMedia", [], "method", false, false, false, 28), 500, 324), "html", null, true);
echo "\"
alt=\"\"/>
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 30, $this->source); })()), "getDetailMedias", [], "method", false, false, false, 30), 1, 8));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 31
echo " <img class=\"image d-none\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 500, 324), "html", null, true);
echo "\"
alt=\"";
// line 32
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 32), "html", null, true);
echo "\" border=\"0\"/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " ";
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 34, $this->source); })()), "getDetailMedias", [], "method", false, false, false, 34)), 8))) {
// line 35
echo " <div class=\"brazzers-more d-none\">
<div class=\"brazzers-more__wrapper\">
<div class=\"brazzers-more__icon\"></div>
<div class=\"brazzers-more__text\">Еще ";
// line 38
echo twig_escape_filter($this->env, (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 38, $this->source); })()), "getDetailMedias", [], "method", false, false, false, 38)) - 3), "html", null, true);
echo " фото</div>
</div>
</div>
";
}
// line 42
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 42) && (1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["galleryVideos"]) || array_key_exists("galleryVideos", $context) ? $context["galleryVideos"] : (function () { throw new RuntimeError('Variable "galleryVideos" does not exist.', 42, $this->source); })()), "getVideos", [], "method", false, false, false, 42)), 0)))) {
// line 43
echo " <div class=\"story-teaser-img\">
<img src=\"/images/play-offer-story.svg\" alt=\"Истории\"/>
</div>
";
}
// line 47
echo " ";
if (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 47, $this->source); })()), "isHideNoveltyLabel", [], "method", false, false, false, 47) && (0 >= twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 47, $this->source); })()), "getActiveSince", [], "method", false, false, false, 47), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 47), "days", [], "any", false, false, false, 47), twig_constant("Slivki\\Services\\Category\\NewOfferCategoryService::NEW_OFFER_PERIOD_DAYS"))))) {
// line 48
echo " <div class=\"new-offer-watermark\">
Новая
</div>
";
}
// line 52
echo " ";
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 52, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 52)) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 52, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 52), "getDeliveryWorkingTime", [], "method", false, false, false, 52)))) {
// line 53
echo " ";
$context["workingDeliveryTime"] = twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->jsonDecodeFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 53, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 53), "getDeliveryWorkingTime", [], "method", false, false, false, 53)), twig_date_format_filter($this->env, "now", "w"), [], "array", false, false, false, 53);
// line 54
echo " ";
$context["startTime"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 54, $this->source); })()), "startTime", [], "any", false, false, false, 54), "H:i");
// line 55
echo " ";
$context["endTime"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 55, $this->source); })()), "endTime", [], "any", false, false, false, 55), "H:i");
// line 56
echo " ";
$context["dayOff"] = twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 56, $this->source); })()), "dayOff", [], "any", false, false, false, 56);
// line 57
echo " ";
$context["nowTime"] = twig_date_format_filter($this->env, "now", "H:i");
// line 58
echo " ";
if (((0 === twig_compare((isset($context["startTime"]) || array_key_exists("startTime", $context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.', 58, $this->source); })()), (isset($context["endTime"]) || array_key_exists("endTime", $context) ? $context["endTime"] : (function () { throw new RuntimeError('Variable "endTime" does not exist.', 58, $this->source); })()))) && !(isset($context["dayOff"]) || array_key_exists("dayOff", $context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.', 58, $this->source); })()))) {
echo "ы
<a href=\"";
// line 59
echo twig_escape_filter($this->env, (isset($context["offerURL"]) || array_key_exists("offerURL", $context) ? $context["offerURL"] : (function () { throw new RuntimeError('Variable "offerURL" does not exist.', 59, $this->source); })()), "html", null, true);
echo "\" class=\"open-delivery-info d-none\" target=\"_blank\">ДОСТАВКА КРУГЛОСУТОЧНО</a>
";
}
// line 61
echo " ";
}
// line 62
echo " <a href=\"";
echo twig_escape_filter($this->env, (isset($context["offerURL"]) || array_key_exists("offerURL", $context) ? $context["offerURL"] : (function () { throw new RuntimeError('Variable "offerURL" does not exist.', 62, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\" class=\"details-link ";
echo twig_escape_filter($this->env, (isset($context["teaserAnchorClass"]) || array_key_exists("teaserAnchorClass", $context) ? $context["teaserAnchorClass"] : (function () { throw new RuntimeError('Variable "teaserAnchorClass" does not exist.', 62, $this->source); })()), "html", null, true);
echo "\">
";
// line 63
if (twig_trim_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 63, $this->source); })()), "getCaptionName", [], "method", false, false, false, 63))) {
// line 64
echo " <div class=\"info-line\" style=\"background-color: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 64, $this->source); })()), "getCaptionColor", [], "method", false, false, false, 64), "html", null, true);
echo ";\">
<div>";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 65, $this->source); })()), "getCaptionName", [], "method", false, false, false, 65), "html", null, true);
echo "</div>
</div>
";
}
// line 68
echo "
";
// line 69
if (twig_trim_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 69, $this->source); })()), "getRegionalCaptionName", [], "method", false, false, false, 69))) {
// line 70
echo " <div class=\"info-line regional\"
style=\"background-color: ";
// line 71
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 71, $this->source); })()), "getRegionalCaptionColor", [], "method", false, false, false, 71), "html", null, true);
echo "; display: none;\">
<div>";
// line 72
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 72, $this->source); })()), "getRegionalCaptionName", [], "method", false, false, false, 72), "html", null, true);
echo "</div>
</div>
";
}
// line 75
echo "
</a>
";
// line 78
if ((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 78, $this->source); })()), "getHint", [], "method", false, false, false, 78) && (0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 78, $this->source); })()), "getHint", [], "method", false, false, false, 78)), "")))) {
// line 79
echo " <div class=\"teaser-hint\">
<div class=\"teaser-hint-inner\">";
// line 80
echo twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 80, $this->source); })()), "getHint", [], "method", false, false, false, 80);
echo "</div>
</div>
";
}
// line 83
echo "
";
// line 84
if (((array_key_exists("showManicurePrice", $context) && (isset($context["showManicurePrice"]) || array_key_exists("showManicurePrice", $context) ? $context["showManicurePrice"] : (function () { throw new RuntimeError('Variable "showManicurePrice" does not exist.', 84, $this->source); })())) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 84, $this->source); })()), "getPrice", [], "method", false, false, false, 84))) {
// line 85
echo " <div class=\"info-line manicure-price\">
<div>Маникюр под ключ ";
// line 86
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 86, $this->source); })()), "getPrice", [], "method", false, false, false, 86), 2, ",", ""), "html", null, true);
echo " руб</div>
</div>
";
}
// line 89
echo "
</div>
";
// line 92
$context["supplierLogo"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTeaserWatermark(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 92, $this->source); })()), "getID", [], "method", false, false, false, 92));
// line 93
echo "
";
// line 94
if ((1 === twig_compare(twig_length_filter($this->env, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 94, $this->source); })())), 0))) {
// line 95
echo " ";
$context["supplierLogoWidth"] = ((twig_get_attribute($this->env, $this->source, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 95, $this->source); })()), "width", [], "any", false, false, false, 95)) ? (twig_get_attribute($this->env, $this->source, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 95, $this->source); })()), "width", [], "any", false, false, false, 95)) : (65));
// line 96
echo " <div class=\"teaser--supplier-logo\">
<img style=\"";
// line 97
((twig_get_attribute($this->env, $this->source, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 97, $this->source); })()), "width", [], "any", false, false, false, 97)) ? (print (twig_escape_filter($this->env, (("width:" . twig_get_attribute($this->env, $this->source, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 97, $this->source); })()), "width", [], "any", false, false, false, 97)) . "px;"), "html", null, true))) : (print ("")));
((twig_get_attribute($this->env, $this->source, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 97, $this->source); })()), "height", [], "any", false, false, false, 97)) ? (print (twig_escape_filter($this->env, (("height:" . twig_get_attribute($this->env, $this->source, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 97, $this->source); })()), "height", [], "any", false, false, false, 97)) . "px;"), "html", null, true))) : (print ("")));
echo "\"
src=\"";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env, $this->source, (isset($context["supplierLogo"]) || array_key_exists("supplierLogo", $context) ? $context["supplierLogo"] : (function () { throw new RuntimeError('Variable "supplierLogo" does not exist.', 98, $this->source); })()), "watermark", [], "any", false, false, false, 98), (2 * (isset($context["supplierLogoWidth"]) || array_key_exists("supplierLogoWidth", $context) ? $context["supplierLogoWidth"] : (function () { throw new RuntimeError('Variable "supplierLogoWidth" does not exist.', 98, $this->source); })())), 0), "html", null, true);
echo "\" alt=\"\"/>
</div>
";
}
// line 101
echo " ";
$this->displayBlock('favorite', $context, $blocks);
// line 102
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 102, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 102)) {
// line 103
echo " <div class=\"discount-label\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 103, $this->source); })()), "getDiscountLabelText", [], "method", false, false, false, 103), "html", null, true);
echo "</div>
";
}
// line 105
echo " <div class=\"top\">
";
// line 106
$context["rating"] = twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 106, $this->source); })()), "getRating", [], "method", false, false, false, 106);
// line 107
echo " ";
$context["ratingPercentage"] = (((isset($context["rating"]) || array_key_exists("rating", $context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.', 107, $this->source); })()) * 100) / 5);
// line 108
echo " ";
$context["ratingCount"] = $this->env->getRuntime('Slivki\Twig\GetCommentsCountTwigRuntime')->getOfferCommentsCount(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 108, $this->source); })()), "getID", [], "method", false, false, false, 108));
// line 109
echo "
";
// line 110
if ((1 === twig_compare((isset($context["rating"]) || array_key_exists("rating", $context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.', 110, $this->source); })()), 0))) {
// line 111
echo " <div class=\"d-flex align-items-center\">
<div class=\"star-ratings-css\">
<div class=\"star-ratings-css-top\" style=\"width: ";
// line 114
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.', 114, $this->source); })()), "html", null, true);
echo "%\">
<span>★</span>
</div>
</div>
<div class=\"rating-value\" style=\"margin-right: 2px;\">";
// line 118
echo twig_escape_filter($this->env, twig_round((isset($context["rating"]) || array_key_exists("rating", $context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.', 118, $this->source); })()), 2, "ceil"), "html", null, true);
echo "</div>
";
// line 119
if ((1 === twig_compare((isset($context["ratingCount"]) || array_key_exists("ratingCount", $context) ? $context["ratingCount"] : (function () { throw new RuntimeError('Variable "ratingCount" does not exist.', 119, $this->source); })()), 0))) {
// line 120
echo " <div class=\"rating-value\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title=\"Количество комментариев к данной акции\">
(";
// line 122
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetCommentsCountTwigRuntime')->getOfferCommentsCount(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 122, $this->source); })()), "getID", [], "method", false, false, false, 122)), "html", null, true);
echo ")
</div>
";
}
// line 125
echo " </div>
";
}
// line 127
echo " ";
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 127, $this->source); })()), "getGeoLocations", [], "method", false, false, false, 127), "count", [], "method", false, false, false, 127), 0))) {
// line 128
echo " <div class=\"geo-location-block\">
<div class=\"distance\" data-toggle=\"distance-tooltip\" data-placement=\"top\"
data-original-title=\"Расстояние от Вас до объекта\">
<i class=\"slivki-icon slivki-icon-direction\"></i>
<img class='ajaxLoader' src='/images/ajax-loader-16x16.gif' alt='Загрузка...'/>
<span></span>
</div>
";
// line 135
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/offers/teaser.html.twig", 135)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 135, $this->source); })())]));
// line 136
echo " </div>
";
}
// line 138
echo " </div>
<div class=\"teaser-same-height\">
<div class=\"title\">
<a href=\"";
// line 142
echo twig_escape_filter($this->env, (isset($context["offerURL"]) || array_key_exists("offerURL", $context) ? $context["offerURL"] : (function () { throw new RuntimeError('Variable "offerURL" does not exist.', 142, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\" class=\"details-link \"
style=\"color: ";
// line 143
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 143, $this->source); })()), "getTitleFontColor", [], "method", false, false, false, 143), "html", null, true);
echo ";\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 143, $this->source); })()), "getTitle", [], "method", false, false, false, 143);
echo "</a>
</div>
</div>
<a class=\"details-link marketActionLink\" href=\"";
// line 147
echo twig_escape_filter($this->env, (isset($context["offerURL"]) || array_key_exists("offerURL", $context) ? $context["offerURL"] : (function () { throw new RuntimeError('Variable "offerURL" does not exist.', 147, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\">
<div class=\"address\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title=\"Ориентир\">";
// line 149
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 149, $this->source); })()), "getAddress", [], "method", false, false, false, 149), "html", null, true);
echo "</div>
</a>
<div class=\"bottom d-flex font-size-0680\">
";
// line 153
$context["daysLeft"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 153, $this->source); })()), "getActiveTill", [], "method", false, false, false, 153), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 153), "days", [], "any", false, false, false, 153);
// line 154
echo "
";
// line 155
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 155, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 155)) {
// line 156
echo " <a href=\"";
echo twig_escape_filter($this->env, (isset($context["offerURL"]) || array_key_exists("offerURL", $context) ? $context["offerURL"] : (function () { throw new RuntimeError('Variable "offerURL" does not exist.', 156, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\" class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Взято кодов за ";
// line 157
echo twig_escape_filter($this->env, (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 157, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "день", 1 => "дня", 2 => "дней"], (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 157, $this->source); })())), "html", null, true);
echo "'>
<i class=\"slivki-icon slivki-icon-users\"></i>
<span>";
// line 159
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferMonthlyPurchaseCount(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 159, $this->source); })()), "getID", [], "method", false, false, false, 159)), "html", null, true);
echo "</span>
</a>
";
}
// line 162
echo "
<div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Просмотров за ";
// line 164
echo twig_escape_filter($this->env, (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 164, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "день", 1 => "дня", 2 => "дней"], (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 164, $this->source); })())), "html", null, true);
echo "'>
<i class=\"slivki-icon slivki-icon-eye\"></i>
<span>";
// line 166
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferVisitCount((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 166, $this->source); })())), "html", null, true);
echo "</span>
</div>
";
// line 169
if ((( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 169, $this->source); })()), "isInFreeCodesCategory", [], "method", false, false, false, 169) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 169, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 169)) && (1 === twig_compare($this->env->getRuntime('Slivki\Twig\GetOfferConversionTwigRuntime')->getOfferConversion(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 169, $this->source); })()), "getID", [], "method", false, false, false, 169)), 0)))) {
// line 170
echo " <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\" data-html=\"true\" rel=\"tooltip\"
data-original-title='Актуальность за ";
// line 171
echo twig_escape_filter($this->env, (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 171, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "день", 1 => "дня", 2 => "дней"], (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart", $context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.', 171, $this->source); })())), "html", null, true);
echo "'>
<img src=\"/images/stats-alt-2.svg\" style=\"margin: 0 .2em;\"/>
<span>";
// line 173
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetOfferConversionTwigRuntime')->getOfferConversion(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 173, $this->source); })()), "getID", [], "method", false, false, false, 173)), "html", null, true);
echo "%</span>
</div>
";
}
// line 176
echo "
";
// line 177
if ((((0 >= twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 177, $this->source); })()), "getActiveSince", [], "method", false, false, false, 177), twig_date_converter($this->env))) && (0 <= twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 177, $this->source); })()), "getActiveTill", [], "method", false, false, false, 177), twig_date_converter($this->env)))) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 177, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 177))) {
// line 178
echo " <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Дней до окончания действия акции'>
<i class=\"slivki-icon slivki-icon-clock\"></i>
<span class=\"daystr\">";
// line 181
(((0 === twig_compare((isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 181, $this->source); })()), 0))) ? (print (0.5)) : (print (twig_escape_filter($this->env, (isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 181, $this->source); })()), "html", null, true))));
echo " ";
(((1 === twig_compare((isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 181, $this->source); })()), 0))) ? (print (twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "день", 1 => "дня", 2 => "дней"], (isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 181, $this->source); })())), "html", null, true))) : (print ("дня")));
echo "</span>
</div>
";
}
// line 184
echo "
</div>
<div class=\"w-100 d-flex\" style=\"flex-wrap: wrap;\">
";
// line 187
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 187, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 187)) {
// line 188
echo " <a href=\"";
echo twig_escape_filter($this->env, ((twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 188, $this->source); })()), "getID", [], "method", false, false, false, 188), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) ? ($this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrderByOnlyCode((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 188, $this->source); })()))) : ($this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkOnlineOrder((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 188, $this->source); })())))), "html", null, true);
echo "\"
class=\"top-code-online-order utm-added\">Онлайн-заказ</a>
";
}
// line 191
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 191, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 191)) {
// line 192
echo " <a href=\"/gift-certificate/select/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 192, $this->source); })()), "getID", [], "method", false, false, false, 192), "html", null, true);
echo ((twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 192, $this->source); })()), "getID", [], "method", false, false, false, 192), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) ? ("/code") : (""));
echo "\"
class=\"top-code-online-order utm-added\">Онлайн-покупка</a>
";
}
// line 195
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 195, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 195)) {
// line 196
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 196, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 196), "html", null, true);
echo "\" class=\"top-code-online-order utm-added\">Онлайн-запись</a>
";
}
// line 198
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 198, $this->source); })()), "isInFreeCodesCategory", [], "method", false, false, false, 198)) {
// line 199
echo " <div class=\"top-code\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Код скидки предоставляется сайтом бесплатно'>Код 0 руб.
</div>
";
}
// line 203
echo " ";
if (((((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 203, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 203) && !(null === twig_get_attribute($this->env, $this->source, // line 204
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 204, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 204))) && (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 205
($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 205), "allowedPaymentMethods", [], "any", false, true, false, 205), "delivery", [], "array", true, true, false, 205) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 206
($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 206), "allowedPaymentMethods", [], "any", false, true, false, 206), "delivery", [], "array", false, true, false, 206), 4, [], "array", true, true, false, 206)) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 207
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 207, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 207), "allowedPaymentMethods", [], "any", false, false, false, 207), "delivery", [], "array", false, false, false, 207), 4, [], "array", false, false, false, 207), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY")))) || (twig_get_attribute($this->env, $this->source, // line 210
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 210, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 210) && (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 211
($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 211), "allowedPaymentMethods", [], "any", false, true, false, 211), "pickup", [], "array", true, true, false, 211) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 212
($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 212), "allowedPaymentMethods", [], "any", false, true, false, 212), "pickup", [], "array", false, true, false, 212), 4, [], "array", true, true, false, 212)) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 213
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 213, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 213), "allowedPaymentMethods", [], "any", false, false, false, 213), "pickup", [], "array", false, false, false, 213), 4, [], "array", false, false, false, 213), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))))) || ((((((( // line 216
array_key_exists("offer", $context) && !(null === // line 217
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 217, $this->source); })()))) && twig_get_attribute($this->env, $this->source, // line 218
($context["offer"] ?? null), "getAllowedPaymentMethodsForCertificate", [], "method", true, true, false, 218)) && !(null === twig_get_attribute($this->env, $this->source, // line 219
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 219, $this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method", false, false, false, 219))) && twig_in_filter(4, twig_get_array_keys_filter(twig_get_attribute($this->env, $this->source, // line 220
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 220, $this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method", false, false, false, 220)))) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 221
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 221, $this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method", false, false, false, 221), 4, [], "array", false, false, false, 221), 1))) && twig_get_attribute($this->env, $this->source, // line 222
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 222, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 222)) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE"))))) {
// line 225
echo " <a class=\"js-slivki-pay-button top-code-online-order utm-added\">SlivkiPay + 5%</a>
";
}
// line 227
echo "
";
// line 229
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 229, $this->source); })()), "getDeliveryTimeTeaser", [], "method", false, false, false, 229)) {
// line 230
echo " <div class=\"time-delivery d-flex justify-content-center align-items-center\">
<img width=\"22\" height=\"17\" class=\"mr-1\" src=\"/images/icon_avto.svg\"/>
<span class=\"color-white\">";
// line 232
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 232, $this->source); })()), "getDeliveryTimeTeaser", [], "method", false, false, false, 232), "html", null, true);
echo " ";
echo (((0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 232, $this->source); })()), "getDeliveryTimeTeaser", [], "method", false, false, false, 232), "Предзаказ"))) ? (" мин") : (""));
echo "</span>
</div>
";
}
// line 235
echo " </div>
";
// line 236
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 236, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 236)) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 236, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 236), "getDeliveryWorkingTime", [], "method", false, false, false, 236)))) {
// line 237
echo " ";
$context["workingDeliveryTime"] = twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->jsonDecodeFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 237, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 237), "getDeliveryWorkingTime", [], "method", false, false, false, 237)), twig_date_format_filter($this->env, "now", "w"), [], "array", false, false, false, 237);
// line 238
echo " ";
$context["startTime"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 238, $this->source); })()), "startTime", [], "any", false, false, false, 238), "H:i");
// line 239
echo " ";
$context["endTime"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 239, $this->source); })()), "endTime", [], "any", false, false, false, 239), "H:i");
// line 240
echo " ";
$context["dayOff"] = twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 240, $this->source); })()), "dayOff", [], "any", false, false, false, 240);
// line 241
echo " ";
$context["nowTime"] = twig_date_format_filter($this->env, "now", "H:i");
// line 242
echo "
";
// line 243
if ((((0 <= twig_compare((isset($context["nowTime"]) || array_key_exists("nowTime", $context) ? $context["nowTime"] : (function () { throw new RuntimeError('Variable "nowTime" does not exist.', 243, $this->source); })()), (isset($context["startTime"]) || array_key_exists("startTime", $context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.', 243, $this->source); })()))) && (0 >= twig_compare((isset($context["nowTime"]) || array_key_exists("nowTime", $context) ? $context["nowTime"] : (function () { throw new RuntimeError('Variable "nowTime" does not exist.', 243, $this->source); })()), (isset($context["endTime"]) || array_key_exists("endTime", $context) ? $context["endTime"] : (function () { throw new RuntimeError('Variable "endTime" does not exist.', 243, $this->source); })())))) && !(isset($context["dayOff"]) || array_key_exists("dayOff", $context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.', 243, $this->source); })()))) {
// line 244
echo " <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка до ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 244, $this->source); })()), "endTime", [], "any", false, false, false, 244), "html", null, true);
echo "</p>
";
} elseif ((((-1 === twig_compare( // line 245
(isset($context["nowTime"]) || array_key_exists("nowTime", $context) ? $context["nowTime"] : (function () { throw new RuntimeError('Variable "nowTime" does not exist.', 245, $this->source); })()), (isset($context["startTime"]) || array_key_exists("startTime", $context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.', 245, $this->source); })()))) && (0 !== twig_compare((isset($context["startTime"]) || array_key_exists("startTime", $context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.', 245, $this->source); })()), (isset($context["endTime"]) || array_key_exists("endTime", $context) ? $context["endTime"] : (function () { throw new RuntimeError('Variable "endTime" does not exist.', 245, $this->source); })())))) && !(isset($context["dayOff"]) || array_key_exists("dayOff", $context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.', 245, $this->source); })()))) {
// line 246
echo " <p class=\"teaser-working-time-delivery closed-delivery d-none\">Закрыто. Доставка с ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["workingDeliveryTime"]) || array_key_exists("workingDeliveryTime", $context) ? $context["workingDeliveryTime"] : (function () { throw new RuntimeError('Variable "workingDeliveryTime" does not exist.', 246, $this->source); })()), "startTime", [], "any", false, false, false, 246), "html", null, true);
echo "</p>
";
} elseif (((0 === twig_compare( // line 247
(isset($context["startTime"]) || array_key_exists("startTime", $context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.', 247, $this->source); })()), (isset($context["endTime"]) || array_key_exists("endTime", $context) ? $context["endTime"] : (function () { throw new RuntimeError('Variable "endTime" does not exist.', 247, $this->source); })()))) && !(isset($context["dayOff"]) || array_key_exists("dayOff", $context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.', 247, $this->source); })()))) {
// line 248
echo " <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка круглосуточно</p>
";
} elseif ( // line 249
(isset($context["dayOff"]) || array_key_exists("dayOff", $context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.', 249, $this->source); })())) {
// line 250
echo " <p class=\"teaser-working-time-delivery closed-delivery d-none\">Предзаказ</p>
";
}
// line 252
echo " ";
}
// line 253
echo " </div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 17
public function block_imageDiv($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", "imageDiv"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "imageDiv"));
// line 18
echo " ";
if (array_key_exists("noLazyLoad", $context)) {
// line 19
echo " <div class=\"images ";
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 19, $this->source); })()), "getDetailMedias", [], "method", false, false, false, 19)), 0))) {
echo "tiaser-carousel";
}
echo "\"
style=\"display: block; background-image: url('";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 20, $this->source); })()), "getTeaserMedia", [], "method", false, false, false, 20), 250, 162), "html", null, true);
echo "')\"
onclick=\"window.open('";
// line 21
echo twig_escape_filter($this->env, (isset($context["offerURL"]) || array_key_exists("offerURL", $context) ? $context["offerURL"] : (function () { throw new RuntimeError('Variable "offerURL" does not exist.', 21, $this->source); })()), "html", null, true);
echo "' + location.search);\">
";
} else {
// line 23
echo " <div class=\"images lazy ";
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 23, $this->source); })()), "getDetailMedias", [], "method", false, false, false, 23)), 0))) {
echo "tiaser-carousel";
}
echo "\"
data-original=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 24, $this->source); })()), "getTeaserMedia", [], "method", false, false, false, 24), 500, 324), "html", null, true);
echo "\"
onclick=\"window.open('";
// line 25
echo twig_escape_filter($this->env, (isset($context["offerURL"]) || array_key_exists("offerURL", $context) ? $context["offerURL"] : (function () { throw new RuntimeError('Variable "offerURL" does not exist.', 25, $this->source); })()), "html", null, true);
echo "' + location.search);\">
";
}
// line 27
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 101
public function block_favorite($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", "favorite"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "favorite"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/offers/teaser.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 656 => 101, 646 => 27, 641 => 25, 637 => 24, 630 => 23, 625 => 21, 621 => 20, 614 => 19, 611 => 18, 601 => 17, 591 => 253, 588 => 252, 584 => 250, 582 => 249, 579 => 248, 577 => 247, 572 => 246, 570 => 245, 565 => 244, 563 => 243, 560 => 242, 557 => 241, 554 => 240, 551 => 239, 548 => 238, 545 => 237, 543 => 236, 540 => 235, 532 => 232, 528 => 230, 526 => 229, 522 => 227, 518 => 225, 516 => 222, 515 => 221, 514 => 220, 513 => 219, 512 => 218, 511 => 217, 510 => 216, 509 => 213, 508 => 212, 507 => 211, 506 => 210, 505 => 207, 504 => 206, 503 => 205, 502 => 204, 500 => 203, 494 => 199, 491 => 198, 485 => 196, 482 => 195, 474 => 192, 471 => 191, 464 => 188, 462 => 187, 457 => 184, 449 => 181, 444 => 178, 442 => 177, 439 => 176, 433 => 173, 426 => 171, 423 => 170, 421 => 169, 415 => 166, 408 => 164, 404 => 162, 398 => 159, 391 => 157, 386 => 156, 384 => 155, 381 => 154, 379 => 153, 372 => 149, 367 => 147, 358 => 143, 354 => 142, 348 => 138, 344 => 136, 342 => 135, 333 => 128, 330 => 127, 326 => 125, 320 => 122, 316 => 120, 314 => 119, 310 => 118, 303 => 114, 298 => 111, 296 => 110, 293 => 109, 290 => 108, 287 => 107, 285 => 106, 282 => 105, 276 => 103, 273 => 102, 270 => 101, 264 => 98, 259 => 97, 256 => 96, 253 => 95, 251 => 94, 248 => 93, 246 => 92, 241 => 89, 235 => 86, 232 => 85, 230 => 84, 227 => 83, 221 => 80, 218 => 79, 216 => 78, 211 => 75, 205 => 72, 201 => 71, 198 => 70, 196 => 69, 193 => 68, 187 => 65, 182 => 64, 180 => 63, 173 => 62, 170 => 61, 165 => 59, 160 => 58, 157 => 57, 154 => 56, 151 => 55, 148 => 54, 145 => 53, 142 => 52, 136 => 48, 133 => 47, 127 => 43, 124 => 42, 117 => 38, 112 => 35, 109 => 34, 101 => 32, 96 => 31, 92 => 30, 86 => 28, 84 => 17, 76 => 16, 73 => 15, 68 => 12, 66 => 11, 63 => 10, 61 => 9, 59 => 8, 57 => 7, 55 => 6, 53 => 5, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set teaserAnchorClass = '' %}
{% if not offer.isHideNoveltyLabel() and offer.getActiveSince().diff(date()).days <= 5 %}
{% set teaserAnchorClass = 'newProduct' %}
{% endif %}
{% set offerURL = urlWithDomain is defined ? urlWithDomain : getURL(\"Slivki:Default:details\", offer.getID(), true) %}
{% set teaserStatDays = 30 %}
{% set daysFromStrart = date(offer.getActiveSince|date).diff(date('now')).days %}
{% set daysFromStrart = daysFromStrart < teaserStatDays ? daysFromStrart : teaserStatDays %}
{% set daysFromStrart = daysFromStrart == 0 ? 1 : daysFromStrart %}
{% if isMailing is defined and isMailing %}
<input type=\"checkbox\" class=\"marketActionCheckBox\"/>
<input type=\"checkbox\" style=\"float: left;\" name=\"mainTeaser\" class=\"marketActionRadio\"/>
{% endif %}
<div class=\"stock-group-item\" id='action{{ offer.getID() }}' data-id=\"{{ offer.getID() }}\" data-pixel={{ offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BETERA_OFFER_ID') ? 'https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464043&evt_t=render&ad_type=banner&rnd=%system.random%' }}>
{% block imageDiv %}
{% if noLazyLoad is defined %}
<div class=\"images {% if offer.getDetailMedias()|length > 0 %}tiaser-carousel{% endif %}\"
style=\"display: block; background-image: url('{{ getImageURL(offer.getTeaserMedia(), 250, 162) }}')\"
onclick=\"window.open('{{ offerURL }}' + location.search);\">
{% else %}
<div class=\"images lazy {% if offer.getDetailMedias()|length > 0 %}tiaser-carousel{% endif %}\"
data-original=\"{{ getImageURL(offer.getTeaserMedia(), 500, 324) }}\"
onclick=\"window.open('{{ offerURL }}' + location.search);\">
{% endif %}
{% endblock %}
<img class=\"image\" src=\"{{ getImageURL(offer.getTeaserMedia(), 500, 324) }}\"
alt=\"\"/>
{% for media in offer.getDetailMedias()|slice(1, 8) %}
<img class=\"image d-none\" src=\"{{ getImageURL(media, 500, 324) }}\"
alt=\"{{ media.getDescription() }}\" border=\"0\"/>
{% endfor %}
{% if offer.getDetailMedias()|length > 8 %}
<div class=\"brazzers-more d-none\">
<div class=\"brazzers-more__wrapper\">
<div class=\"brazzers-more__icon\"></div>
<div class=\"brazzers-more__text\">Еще {{ offer.getDetailMedias()|length - 3 }} фото</div>
</div>
</div>
{% endif %}
{% if galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
<div class=\"story-teaser-img\">
<img src=\"/images/play-offer-story.svg\" alt=\"Истории\"/>
</div>
{% endif %}
{% if not offer.isHideNoveltyLabel() and offer.getActiveSince().diff(date()).days <= constant('Slivki\\\\Services\\\\Category\\\\NewOfferCategoryService::NEW_OFFER_PERIOD_DAYS') %}
<div class=\"new-offer-watermark\">
Новая
</div>
{% endif %}
{% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().getDeliveryWorkingTime() is not null %}
{% set workingDeliveryTime = (offer.getOnlineOrderSettings().getDeliveryWorkingTime())|json_decode()[\"now\"|date(\"w\")] %}
{% set startTime = workingDeliveryTime.startTime|date('H:i') %}
{% set endTime = workingDeliveryTime.endTime|date('H:i') %}
{% set dayOff = workingDeliveryTime.dayOff %}
{% set nowTime = \"now\"|date(\"H:i\") %}
{% if startTime == endTime and not dayOff %}ы
<a href=\"{{ offerURL }}\" class=\"open-delivery-info d-none\" target=\"_blank\">ДОСТАВКА КРУГЛОСУТОЧНО</a>
{% endif %}
{% endif %}
<a href=\"{{ offerURL }}\" target=\"_blank\" class=\"details-link {{ teaserAnchorClass }}\">
{% if offer.getCaptionName()|trim %}
<div class=\"info-line\" style=\"background-color: {{ offer.getCaptionColor() }};\">
<div>{{ offer.getCaptionName() }}</div>
</div>
{% endif %}
{% if offer.getRegionalCaptionName()|trim %}
<div class=\"info-line regional\"
style=\"background-color: {{ offer.getRegionalCaptionColor() }}; display: none;\">
<div>{{ offer.getRegionalCaptionName() }}</div>
</div>
{% endif %}
</a>
{% if offer.getHint() and offer.getHint()|trim != '' %}
<div class=\"teaser-hint\">
<div class=\"teaser-hint-inner\">{{ offer.getHint()|raw }}</div>
</div>
{% endif %}
{% if showManicurePrice is defined and showManicurePrice and offer.getPrice() %}
<div class=\"info-line manicure-price\">
<div>Маникюр под ключ {{ offer.getPrice()|number_format(2, ',', '') }} руб</div>
</div>
{% endif %}
</div>
{% set supplierLogo = getTeaserWatermark(offer.getID()) %}
{% if supplierLogo|length > 0 %}
{% set supplierLogoWidth = supplierLogo.width ? supplierLogo.width : 65 %}
<div class=\"teaser--supplier-logo\">
<img style=\"{{ supplierLogo.width ? 'width:' ~ supplierLogo.width ~ 'px;' }}{{ supplierLogo.height ? 'height:' ~ supplierLogo.height ~ 'px;' }}\"
src=\"{{ getImageURL(supplierLogo.watermark, 2 * supplierLogoWidth, 0) }}\" alt=\"\"/>
</div>
{% endif %}
{% block favorite %}{% endblock %}
{% if not offer.isWithoutCodes() %}
<div class=\"discount-label\">{{ offer.getDiscountLabelText() }}</div>
{% endif %}
<div class=\"top\">
{% set rating = offer.getRating() %}
{% set ratingPercentage = rating * 100 / 5 %}
{% set ratingCount = getOfferCommentsCount(offer.getID()) %}
{% if rating > 0 %}
<div class=\"d-flex align-items-center\">
<div class=\"star-ratings-css\">
<div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\">
<span>★</span>
</div>
</div>
<div class=\"rating-value\" style=\"margin-right: 2px;\">{{ rating|round(2, 'ceil') }}</div>
{% if ratingCount > 0 %}
<div class=\"rating-value\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title=\"Количество комментариев к данной акции\">
({{ getOfferCommentsCount(offer.getID()) }})
</div>
{% endif %}
</div>
{% endif %}
{% if offer.getGeoLocations().count() > 0 %}
<div class=\"geo-location-block\">
<div class=\"distance\" data-toggle=\"distance-tooltip\" data-placement=\"top\"
data-original-title=\"Расстояние от Вас до объекта\">
<i class=\"slivki-icon slivki-icon-direction\"></i>
<img class='ajaxLoader' src='/images/ajax-loader-16x16.gif' alt='Загрузка...'/>
<span></span>
</div>
{% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
</div>
{% endif %}
</div>
<div class=\"teaser-same-height\">
<div class=\"title\">
<a href=\"{{ offerURL }}\" target=\"_blank\" class=\"details-link \"
style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</a>
</div>
</div>
<a class=\"details-link marketActionLink\" href=\"{{ offerURL }}\" target=\"_blank\">
<div class=\"address\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title=\"Ориентир\">{{ offer.getAddress() }}</div>
</a>
<div class=\"bottom d-flex font-size-0680\">
{% set daysLeft = offer.getActiveTill().diff(date()).days %}
{% if not offer.isWithoutCodes() %}
<a href=\"{{ offerURL }}\" target=\"_blank\" class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Взято кодов за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
<i class=\"slivki-icon slivki-icon-users\"></i>
<span>{{ getOfferMonthlyPurchaseCount(offer.getID()) }}</span>
</a>
{% endif %}
<div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Просмотров за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
<i class=\"slivki-icon slivki-icon-eye\"></i>
<span>{{ getOfferVisitCount(offer) }}</span>
</div>
{% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() and getOfferConversion(offer.getID()) > 0 %}
<div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\" data-html=\"true\" rel=\"tooltip\"
data-original-title='Актуальность за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
<img src=\"/images/stats-alt-2.svg\" style=\"margin: 0 .2em;\"/>
<span>{{ getOfferConversion(offer.getID()) }}%</span>
</div>
{% endif %}
{% if offer.getActiveSince() <= date() and offer.getActiveTill() >= date() and not offer.isWithoutCodes() %}
<div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Дней до окончания действия акции'>
<i class=\"slivki-icon slivki-icon-clock\"></i>
<span class=\"daystr\">{{ daysLeft == 0 ? 0.5 : daysLeft }} {{ daysLeft > 0 ? ['день', 'дня', 'дней']|plural(daysLeft) : 'дня' }}</span>
</div>
{% endif %}
</div>
<div class=\"w-100 d-flex\" style=\"flex-wrap: wrap;\">
{% if offer.isFoodOnlineOrderAllowedOnSite() %}
<a href=\"{{ offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') ? getLinkGiftCertificateOnlineOrderByOnlyCode(offer) : getLinkOnlineOrder(offer) }}\"
class=\"top-code-online-order utm-added\">Онлайн-заказ</a>
{% endif %}
{% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
<a href=\"/gift-certificate/select/{{ offer.getID() }}{{ offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') ? '/code' : '' }}\"
class=\"top-code-online-order utm-added\">Онлайн-покупка</a>
{% endif %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<a href=\"{{ offer.getOnlineRegistrationLink() }}\" class=\"top-code-online-order utm-added\">Онлайн-запись</a>
{% endif %}
{% if offer.isInFreeCodesCategory() %}
<div class=\"top-code\" data-toggle=\"tooltip\" data-placement=\"top\"
data-original-title='Код скидки предоставляется сайтом бесплатно'>Код 0 руб.
</div>
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() and
offer.getOnlineOrderSettings() is not null and
(offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'] is defined and
offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] is defined and
offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and
isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')))
or
offer.isFoodOnlineOrderAllowedOnSite() and
(offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'] is defined and
offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] is defined and
offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and
isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')))
or
offer is defined and
offer is not null and
offer.getAllowedPaymentMethodsForCertificate() is defined and
offer.getAllowedPaymentMethodsForCertificate() is not null and
4 in offer.getAllowedPaymentMethodsForCertificate()|keys and
offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and
offer.isGiftCertificateOnlineOrderAllowedOnSite() and
isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
%}
<a class=\"js-slivki-pay-button top-code-online-order utm-added\">SlivkiPay + 5%</a>
{% endif %}
{% if offer.getDeliveryTimeTeaser() %}
<div class=\"time-delivery d-flex justify-content-center align-items-center\">
<img width=\"22\" height=\"17\" class=\"mr-1\" src=\"/images/icon_avto.svg\"/>
<span class=\"color-white\">{{ offer.getDeliveryTimeTeaser() }} {{ offer.getDeliveryTimeTeaser() != 'Предзаказ' ? ' мин'}}</span>
</div>
{% endif %}
</div>
{% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().getDeliveryWorkingTime() is not null %}
{% set workingDeliveryTime = (offer.getOnlineOrderSettings().getDeliveryWorkingTime())|json_decode()[\"now\"|date(\"w\")] %}
{% set startTime = workingDeliveryTime.startTime|date('H:i') %}
{% set endTime = workingDeliveryTime.endTime|date('H:i') %}
{% set dayOff = workingDeliveryTime.dayOff %}
{% set nowTime = \"now\"|date(\"H:i\") %}
{% if nowTime >= startTime and nowTime <= endTime and not dayOff %}
<p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка до {{ workingDeliveryTime.endTime }}</p>
{% elseif nowTime < startTime and startTime != endTime and not dayOff %}
<p class=\"teaser-working-time-delivery closed-delivery d-none\">Закрыто. Доставка с {{ workingDeliveryTime.startTime }}</p>
{% elseif startTime == endTime and not dayOff %}
<p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка круглосуточно</p>
{% elseif dayOff %}
<p class=\"teaser-working-time-delivery closed-delivery d-none\">Предзаказ</p>
{% endif %}
{% endif %}
</div>", "Slivki/offers/teaser.html.twig", "/mnt/data/virtwww/dima/templates/Slivki/offers/teaser.html.twig");
}
}