var/cache/dev/twig/66/6614ea262fdb7b9f0b1e9c0b64650c74b4cc9abe7220f0803971d20fffac7a33.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/offers/teaser.html.twig */
  14. class __TwigTemplate_1023ca9827bd9833d8f2a8dad53633ae50b8d543b8577d36b7c0b49c084d14ca extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'imageDiv' => [$this'block_imageDiv'],
  25.             'favorite' => [$this'block_favorite'],
  26.         ];
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/teaser.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/teaser.html.twig"));
  35.         // line 1
  36.         $context["teaserAnchorClass"] = "";
  37.         // line 2
  38.         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"falsefalsefalse2) && (>= twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse2), "diff", [=> twig_date_converter($this->env)], "method"falsefalsefalse2), "days", [], "any"falsefalsefalse2), 5)))) {
  39.             // line 3
  40.             echo "    ";
  41.             $context["teaserAnchorClass"] = "newProduct";
  42.         }
  43.         // line 5
  44.         $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"falsefalsefalse5), true)));
  45.         // line 6
  46.         $context["teaserStatDays"] = 30;
  47.         // line 7
  48.         $context["daysFromStrart"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_date_converter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse7))), "diff", [=> twig_date_converter($this->env"now")], "method"falsefalsefalse7), "days", [], "any"falsefalsefalse7);
  49.         // line 8
  50.         $context["daysFromStrart"] = (((-=== 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); })())));
  51.         // line 9
  52.         $context["daysFromStrart"] = (((=== 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); })())));
  53.         // line 10
  54.         echo "
  55.     ";
  56.         // line 11
  57.         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); })()))) {
  58.             // line 12
  59.             echo "        <input type=\"checkbox\" class=\"marketActionCheckBox\"/>
  60.         <input type=\"checkbox\" style=\"float: left;\" name=\"mainTeaser\" class=\"marketActionRadio\"/>
  61.     ";
  62.         }
  63.         // line 15
  64.         echo "
  65. <div class=\"stock-group-item\" id='action";
  66.         // line 16
  67.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse16), "html"nulltrue);
  68.         echo "' data-id=\"";
  69.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse16), "html"nulltrue);
  70.         echo "\" data-pixel=";
  71.         echo (((=== 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"falsefalsefalse16), 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%") : (""));
  72.         echo ">
  73.     ";
  74.         // line 17
  75.         $this->displayBlock('imageDiv'$context$blocks);
  76.         // line 28
  77.         echo "            <img class=\"image\" src=\"";
  78.         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"falsefalsefalse28), 500324), "html"nulltrue);
  79.         echo "\"
  80.                  alt=\"\"/>
  81.             ";
  82.         // line 30
  83.         $context['_parent'] = $context;
  84.         $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_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"falsefalsefalse30), 18));
  85.         foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  86.             // line 31
  87.             echo "                <img class=\"image d-none\" src=\"";
  88.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 500324), "html"nulltrue);
  89.             echo "\"
  90.                      alt=\"";
  91.             // line 32
  92.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse32), "html"nulltrue);
  93.             echo "\" border=\"0\"/>
  94.             ";
  95.         }
  96.         $_parent $context['_parent'];
  97.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  98.         $context array_intersect_key($context$_parent) + $_parent;
  99.         // line 34
  100.         echo "            ";
  101.         if ((=== twig_compare(twig_length_filter($this->envtwig_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"falsefalsefalse34)), 8))) {
  102.             // line 35
  103.             echo "                <div class=\"brazzers-more d-none\">
  104.                     <div class=\"brazzers-more__wrapper\">
  105.                         <div class=\"brazzers-more__icon\"></div>
  106.                         <div class=\"brazzers-more__text\">Еще ";
  107.             // line 38
  108.             echo twig_escape_filter($this->env, (twig_length_filter($this->envtwig_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"falsefalsefalse38)) - 3), "html"nulltrue);
  109.             echo " фото</div>
  110.                     </div>
  111.                 </div>
  112.             ";
  113.         }
  114.         // line 42
  115.         echo "            ";
  116.         if ((twig_get_attribute($this->env$this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method"truetruefalse42) && (=== twig_compare(twig_length_filter($this->envtwig_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"falsefalsefalse42)), 0)))) {
  117.             // line 43
  118.             echo "                <div class=\"story-teaser-img\">
  119.                     <img src=\"/images/play-offer-story.svg\" alt=\"Истории\"/>
  120.                 </div>
  121.             ";
  122.         }
  123.         // line 47
  124.         echo "            ";
  125.         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"falsefalsefalse47) && (>= twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse47), "diff", [=> twig_date_converter($this->env)], "method"falsefalsefalse47), "days", [], "any"falsefalsefalse47), twig_constant("Slivki\\Services\\Category\\NewOfferCategoryService::NEW_OFFER_PERIOD_DAYS"))))) {
  126.             // line 48
  127.             echo "                <div class=\"new-offer-watermark\">
  128.                     Новая
  129.                 </div>
  130.             ";
  131.         }
  132.         // line 52
  133.         echo "            ";
  134.         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"falsefalsefalse52)) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse52), "getDeliveryWorkingTime", [], "method"falsefalsefalse52)))) {
  135.             // line 53
  136.             echo "            ";
  137.             $context["workingDeliveryTime"] = twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->jsonDecodeFilter(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse53), "getDeliveryWorkingTime", [], "method"falsefalsefalse53)), twig_date_format_filter($this->env"now""w"), [], "array"falsefalsefalse53);
  138.             // line 54
  139.             echo "            ";
  140.             $context["startTime"] = twig_date_format_filter($this->envtwig_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"falsefalsefalse54), "H:i");
  141.             // line 55
  142.             echo "            ";
  143.             $context["endTime"] = twig_date_format_filter($this->envtwig_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"falsefalsefalse55), "H:i");
  144.             // line 56
  145.             echo "            ";
  146.             $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"falsefalsefalse56);
  147.             // line 57
  148.             echo "            ";
  149.             $context["nowTime"] = twig_date_format_filter($this->env"now""H:i");
  150.             // line 58
  151.             echo "            ";
  152.             if (((=== 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); })()))) {
  153.                 echo 
  154.                 <a href=\"";
  155.                 // line 59
  156.                 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"nulltrue);
  157.                 echo "\" class=\"open-delivery-info d-none\" target=\"_blank\">ДОСТАВКА КРУГЛОСУТОЧНО</a>
  158.                 ";
  159.             }
  160.             // line 61
  161.             echo "            ";
  162.         }
  163.         // line 62
  164.         echo "            <a href=\"";
  165.         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"nulltrue);
  166.         echo "\" target=\"_blank\" class=\"details-link ";
  167.         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"nulltrue);
  168.         echo "\">
  169.                 ";
  170.         // line 63
  171.         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"falsefalsefalse63))) {
  172.             // line 64
  173.             echo "                    <div class=\"info-line\" style=\"background-color: ";
  174.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse64), "html"nulltrue);
  175.             echo ";\">
  176.                         <div>";
  177.             // line 65
  178.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse65), "html"nulltrue);
  179.             echo "</div>
  180.                     </div>
  181.                 ";
  182.         }
  183.         // line 68
  184.         echo "
  185.                 ";
  186.         // line 69
  187.         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"falsefalsefalse69))) {
  188.             // line 70
  189.             echo "                    <div class=\"info-line regional\"
  190.                          style=\"background-color: ";
  191.             // line 71
  192.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse71), "html"nulltrue);
  193.             echo "; display: none;\">
  194.                         <div>";
  195.             // line 72
  196.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse72), "html"nulltrue);
  197.             echo "</div>
  198.                     </div>
  199.                 ";
  200.         }
  201.         // line 75
  202.         echo "
  203.             </a>
  204.             ";
  205.         // line 78
  206.         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"falsefalsefalse78) && (!== 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"falsefalsefalse78)), "")))) {
  207.             // line 79
  208.             echo "                <div class=\"teaser-hint\">
  209.                     <div class=\"teaser-hint-inner\">";
  210.             // line 80
  211.             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"falsefalsefalse80);
  212.             echo "</div>
  213.                 </div>
  214.             ";
  215.         }
  216.         // line 83
  217.         echo "
  218.             ";
  219.         // line 84
  220.         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"falsefalsefalse84))) {
  221.             // line 85
  222.             echo "                <div class=\"info-line manicure-price\">
  223.                     <div>Маникюр под ключ ";
  224.             // line 86
  225.             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_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"falsefalsefalse86), 2","""), "html"nulltrue);
  226.             echo " руб</div>
  227.                 </div>
  228.             ";
  229.         }
  230.         // line 89
  231.         echo "
  232.         </div>
  233.         ";
  234.         // line 92
  235.         $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"falsefalsefalse92));
  236.         // line 93
  237.         echo "
  238.         ";
  239.         // line 94
  240.         if ((=== 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))) {
  241.             // line 95
  242.             echo "            ";
  243.             $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"falsefalsefalse95)) ? (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"falsefalsefalse95)) : (65));
  244.             // line 96
  245.             echo "            <div class=\"teaser--supplier-logo\">
  246.                 <img style=\"";
  247.             // line 97
  248.             ((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"falsefalsefalse97)) ? (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"falsefalsefalse97)) . "px;"), "html"nulltrue))) : (print ("")));
  249.             ((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"falsefalsefalse97)) ? (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"falsefalsefalse97)) . "px;"), "html"nulltrue))) : (print ("")));
  250.             echo "\"
  251.                      src=\"";
  252.             // line 98
  253.             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"falsefalsefalse98), (* (isset($context["supplierLogoWidth"]) || array_key_exists("supplierLogoWidth"$context) ? $context["supplierLogoWidth"] : (function () { throw new RuntimeError('Variable "supplierLogoWidth" does not exist.'98$this->source); })())), 0), "html"nulltrue);
  254.             echo "\" alt=\"\"/>
  255.             </div>
  256.         ";
  257.         }
  258.         // line 101
  259.         echo "        ";
  260.         $this->displayBlock('favorite'$context$blocks);
  261.         // line 102
  262.         echo "        ";
  263.         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"falsefalsefalse102)) {
  264.             // line 103
  265.             echo "            <div class=\"discount-label\">";
  266.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse103), "html"nulltrue);
  267.             echo "</div>
  268.         ";
  269.         }
  270.         // line 105
  271.         echo "        <div class=\"top\">
  272.             ";
  273.         // line 106
  274.         $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"falsefalsefalse106);
  275.         // line 107
  276.         echo "            ";
  277.         $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);
  278.         // line 108
  279.         echo "            ";
  280.         $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"falsefalsefalse108));
  281.         // line 109
  282.         echo "
  283.             ";
  284.         // line 110
  285.         if ((=== 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))) {
  286.             // line 111
  287.             echo "                <div class=\"d-flex align-items-center\">
  288.                         <div class=\"star-ratings-css\">
  289.                             <div class=\"star-ratings-css-top\" style=\"width: ";
  290.             // line 114
  291.             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"nulltrue);
  292.             echo "%\">
  293.                                 <span>★</span>
  294.                             </div>
  295.                         </div>
  296.                         <div class=\"rating-value\" style=\"margin-right: 2px;\">";
  297.             // line 118
  298.             echo twig_escape_filter($this->envtwig_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"nulltrue);
  299.             echo "</div>
  300.                     ";
  301.             // line 119
  302.             if ((=== 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))) {
  303.                 // line 120
  304.                 echo "                        <div class=\"rating-value\" data-toggle=\"tooltip\" data-placement=\"top\"
  305.                              data-original-title=\"Количество комментариев к данной акции\">
  306.                             (";
  307.                 // line 122
  308.                 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"falsefalsefalse122)), "html"nulltrue);
  309.                 echo ")
  310.                         </div>
  311.                     ";
  312.             }
  313.             // line 125
  314.             echo "                </div>
  315.             ";
  316.         }
  317.         // line 127
  318.         echo "            ";
  319.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse127), "count", [], "method"falsefalsefalse127), 0))) {
  320.             // line 128
  321.             echo "                <div class=\"geo-location-block\">
  322.                     <div class=\"distance\" data-toggle=\"distance-tooltip\" data-placement=\"top\"
  323.                          data-original-title=\"Расстояние от Вас до объекта\">
  324.                         <i class=\"slivki-icon slivki-icon-direction\"></i>
  325.                         <img class='ajaxLoader' src='/images/ajax-loader-16x16.gif' alt='Загрузка...'/>
  326.                         <span></span>
  327.                     </div>
  328.                     ";
  329.             // line 135
  330.             $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); })())]));
  331.             // line 136
  332.             echo "                </div>
  333.             ";
  334.         }
  335.         // line 138
  336.         echo "        </div>
  337.         <div class=\"teaser-same-height\">
  338.             <div class=\"title\">
  339.                 <a href=\"";
  340.         // line 142
  341.         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"nulltrue);
  342.         echo "\" target=\"_blank\" class=\"details-link \"
  343.                    style=\"color: ";
  344.         // line 143
  345.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse143), "html"nulltrue);
  346.         echo ";\">";
  347.         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"falsefalsefalse143);
  348.         echo "</a>
  349.             </div>
  350.         </div>
  351.         <a class=\"details-link marketActionLink\" href=\"";
  352.         // line 147
  353.         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"nulltrue);
  354.         echo "\" target=\"_blank\">
  355.             <div class=\"address\" data-toggle=\"tooltip\" data-placement=\"top\"
  356.                  data-original-title=\"Ориентир\">";
  357.         // line 149
  358.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse149), "html"nulltrue);
  359.         echo "</div>
  360.         </a>
  361.         <div class=\"bottom d-flex font-size-0680\">
  362.             ";
  363.         // line 153
  364.         $context["daysLeft"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse153), "diff", [=> twig_date_converter($this->env)], "method"falsefalsefalse153), "days", [], "any"falsefalsefalse153);
  365.         // line 154
  366.         echo "
  367.             ";
  368.         // line 155
  369.         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"falsefalsefalse155)) {
  370.             // line 156
  371.             echo "                <a href=\"";
  372.             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"nulltrue);
  373.             echo "\" target=\"_blank\" class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  374.                    data-original-title='Взято кодов за ";
  375.             // line 157
  376.             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"nulltrue);
  377.             echo " ";
  378.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> "день"=> "дня"=> "дней"], (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart"$context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.'157$this->source); })())), "html"nulltrue);
  379.             echo "'>
  380.                     <i class=\"slivki-icon slivki-icon-users\"></i>
  381.                     <span>";
  382.             // line 159
  383.             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"falsefalsefalse159)), "html"nulltrue);
  384.             echo "</span>
  385.                 </a>
  386.             ";
  387.         }
  388.         // line 162
  389.         echo "
  390.             <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  391.                  data-original-title='Просмотров за ";
  392.         // line 164
  393.         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"nulltrue);
  394.         echo " ";
  395.         echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> "день"=> "дня"=> "дней"], (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart"$context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.'164$this->source); })())), "html"nulltrue);
  396.         echo "'>
  397.                 <i class=\"slivki-icon slivki-icon-eye\"></i>
  398.                 <span>";
  399.         // line 166
  400.         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"nulltrue);
  401.         echo "</span>
  402.             </div>
  403.             ";
  404.         // line 169
  405.         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"falsefalsefalse169) &&  !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"falsefalsefalse169)) && (=== 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"falsefalsefalse169)), 0)))) {
  406.             // line 170
  407.             echo "                <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\" data-html=\"true\" rel=\"tooltip\"
  408.                      data-original-title='Актуальность за ";
  409.             // line 171
  410.             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"nulltrue);
  411.             echo " ";
  412.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> "день"=> "дня"=> "дней"], (isset($context["daysFromStrart"]) || array_key_exists("daysFromStrart"$context) ? $context["daysFromStrart"] : (function () { throw new RuntimeError('Variable "daysFromStrart" does not exist.'171$this->source); })())), "html"nulltrue);
  413.             echo "'>
  414.                     <img src=\"/images/stats-alt-2.svg\" style=\"margin: 0 .2em;\"/>
  415.                     <span>";
  416.             // line 173
  417.             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"falsefalsefalse173)), "html"nulltrue);
  418.             echo "%</span>
  419.                 </div>
  420.             ";
  421.         }
  422.         // line 176
  423.         echo "
  424.             ";
  425.         // line 177
  426.         if ((((>= 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"falsefalsefalse177), twig_date_converter($this->env))) && (<= 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"falsefalsefalse177), 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"falsefalsefalse177))) {
  427.             // line 178
  428.             echo "                <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  429.                      data-original-title='Дней до окончания действия акции'>
  430.                     <i class=\"slivki-icon slivki-icon-clock\"></i>
  431.                     <span class=\"daystr\">";
  432.             // line 181
  433.             (((=== 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"nulltrue))));
  434.             echo " ";
  435.             (((=== 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([=> "день"=> "дня"=> "дней"], (isset($context["daysLeft"]) || array_key_exists("daysLeft"$context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.'181$this->source); })())), "html"nulltrue))) : (print ("дня")));
  436.             echo "</span>
  437.                 </div>
  438.             ";
  439.         }
  440.         // line 184
  441.         echo "
  442.         </div>
  443.         <div class=\"w-100 d-flex\" style=\"flex-wrap: wrap;\">
  444.             ";
  445.         // line 187
  446.         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"falsefalsefalse187)) {
  447.             // line 188
  448.             echo "                <a href=\"";
  449.             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"falsefalsefalse188), 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"nulltrue);
  450.             echo "\"
  451.                    class=\"top-code-online-order utm-added\">Онлайн-заказ</a>
  452.             ";
  453.         }
  454.         // line 191
  455.         echo "            ";
  456.         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"falsefalsefalse191)) {
  457.             // line 192
  458.             echo "                <a href=\"/gift-certificate/select/";
  459.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse192), "html"nulltrue);
  460.             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"falsefalsefalse192), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) ? ("/code") : (""));
  461.             echo "\"
  462.                    class=\"top-code-online-order utm-added\">Онлайн-покупка</a>
  463.             ";
  464.         }
  465.         // line 195
  466.         echo "            ";
  467.         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"falsefalsefalse195)) {
  468.             // line 196
  469.             echo "                <a href=\"";
  470.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse196), "html"nulltrue);
  471.             echo "\" class=\"top-code-online-order utm-added\">Онлайн-запись</a>
  472.             ";
  473.         }
  474.         // line 198
  475.         echo "            ";
  476.         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"falsefalsefalse198)) {
  477.             // line 199
  478.             echo "                <div class=\"top-code\" data-toggle=\"tooltip\" data-placement=\"top\"
  479.                      data-original-title='Код скидки предоставляется сайтом бесплатно'>Код 0 руб.
  480.                 </div>
  481.             ";
  482.         }
  483.         // line 203
  484.         echo "            ";
  485.         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"falsefalsefalse203) &&  !(null === twig_get_attribute($this->env$this->source,         // line 204
  486. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'204$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse204))) && (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 205
  487. ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse205), "allowedPaymentMethods", [], "any"falsetruefalse205), "delivery", [], "array"truetruefalse205) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 206
  488. ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse206), "allowedPaymentMethods", [], "any"falsetruefalse206), "delivery", [], "array"falsetruefalse206), 4, [], "array"truetruefalse206)) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 207
  489. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'207$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse207), "allowedPaymentMethods", [], "any"falsefalsefalse207), "delivery", [], "array"falsefalsefalse207), 4, [], "array"falsefalsefalse207), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY")))) || (twig_get_attribute($this->env$this->source,         // line 210
  490. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'210$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse210) && (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 211
  491. ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse211), "allowedPaymentMethods", [], "any"falsetruefalse211), "pickup", [], "array"truetruefalse211) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 212
  492. ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse212), "allowedPaymentMethods", [], "any"falsetruefalse212), "pickup", [], "array"falsetruefalse212), 4, [], "array"truetruefalse212)) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 213
  493. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'213$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse213), "allowedPaymentMethods", [], "any"falsefalsefalse213), "pickup", [], "array"falsefalsefalse213), 4, [], "array"falsefalsefalse213), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))))) || (((((((        // line 216
  494. array_key_exists("offer"$context) &&  !(null ===         // line 217
  495. (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
  496. ($context["offer"] ?? null), "getAllowedPaymentMethodsForCertificate", [], "method"truetruefalse218)) &&  !(null === twig_get_attribute($this->env$this->source,         // line 219
  497. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'219$this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method"falsefalsefalse219))) && twig_in_filter(4twig_get_array_keys_filter(twig_get_attribute($this->env$this->source,         // line 220
  498. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'220$this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method"falsefalsefalse220)))) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 221
  499. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'221$this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method"falsefalsefalse221), 4, [], "array"falsefalsefalse221), 1))) && twig_get_attribute($this->env$this->source,         // line 222
  500. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'222$this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method"falsefalsefalse222)) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE"))))) {
  501.             // line 225
  502.             echo "                <a class=\"js-slivki-pay-button top-code-online-order utm-added\">SlivkiPay + 5%</a>
  503.             ";
  504.         }
  505.         // line 227
  506.         echo "
  507.             ";
  508.         // line 229
  509.         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"falsefalsefalse229)) {
  510.             // line 230
  511.             echo "                <div class=\"time-delivery d-flex justify-content-center align-items-center\">
  512.                     <img width=\"22\" height=\"17\" class=\"mr-1\" src=\"/images/icon_avto.svg\"/>
  513.                     <span class=\"color-white\">";
  514.             // line 232
  515.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse232), "html"nulltrue);
  516.             echo " ";
  517.             echo (((!== 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"falsefalsefalse232), "Предзаказ"))) ? (" мин") : (""));
  518.             echo "</span>
  519.                 </div>
  520.             ";
  521.         }
  522.         // line 235
  523.         echo "        </div>
  524.         ";
  525.         // line 236
  526.         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"falsefalsefalse236)) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse236), "getDeliveryWorkingTime", [], "method"falsefalsefalse236)))) {
  527.             // line 237
  528.             echo "            ";
  529.             $context["workingDeliveryTime"] = twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->jsonDecodeFilter(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse237), "getDeliveryWorkingTime", [], "method"falsefalsefalse237)), twig_date_format_filter($this->env"now""w"), [], "array"falsefalsefalse237);
  530.             // line 238
  531.             echo "            ";
  532.             $context["startTime"] = twig_date_format_filter($this->envtwig_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"falsefalsefalse238), "H:i");
  533.             // line 239
  534.             echo "            ";
  535.             $context["endTime"] = twig_date_format_filter($this->envtwig_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"falsefalsefalse239), "H:i");
  536.             // line 240
  537.             echo "            ";
  538.             $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"falsefalsefalse240);
  539.             // line 241
  540.             echo "            ";
  541.             $context["nowTime"] = twig_date_format_filter($this->env"now""H:i");
  542.             // line 242
  543.             echo "
  544.             ";
  545.             // line 243
  546.             if ((((<= 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); })()))) && (>= 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); })()))) {
  547.                 // line 244
  548.                 echo "                <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка до ";
  549.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse244), "html"nulltrue);
  550.                 echo "</p>
  551.             ";
  552.             } elseif ((((-=== twig_compare(            // line 245
  553. (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); })()))) && (!== 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); })()))) {
  554.                 // line 246
  555.                 echo "                <p class=\"teaser-working-time-delivery closed-delivery d-none\">Закрыто. Доставка с ";
  556.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse246), "html"nulltrue);
  557.                 echo "</p>
  558.             ";
  559.             } elseif (((=== twig_compare(            // line 247
  560. (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); })()))) {
  561.                 // line 248
  562.                 echo "                <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка круглосуточно</p>
  563.             ";
  564.             } elseif (            // line 249
  565. (isset($context["dayOff"]) || array_key_exists("dayOff"$context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.'249$this->source); })())) {
  566.                 // line 250
  567.                 echo "                <p class=\"teaser-working-time-delivery closed-delivery d-none\">Предзаказ</p>
  568.             ";
  569.             }
  570.             // line 252
  571.             echo "        ";
  572.         }
  573.         // line 253
  574.         echo "    </div>";
  575.         
  576.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  577.         
  578.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  579.     }
  580.     // line 17
  581.     public function block_imageDiv($context, array $blocks = [])
  582.     {
  583.         $macros $this->macros;
  584.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  585.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""imageDiv"));
  586.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  587.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""imageDiv"));
  588.         // line 18
  589.         echo "    ";
  590.         if (array_key_exists("noLazyLoad"$context)) {
  591.             // line 19
  592.             echo "    <div class=\"images ";
  593.             if ((=== twig_compare(twig_length_filter($this->envtwig_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"falsefalsefalse19)), 0))) {
  594.                 echo "tiaser-carousel";
  595.             }
  596.             echo "\"
  597.          style=\"display: block; background-image: url('";
  598.             // line 20
  599.             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"falsefalsefalse20), 250162), "html"nulltrue);
  600.             echo "')\"
  601.          onclick=\"window.open('";
  602.             // line 21
  603.             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"nulltrue);
  604.             echo "' + location.search);\">
  605.         ";
  606.         } else {
  607.             // line 23
  608.             echo "        <div class=\"images lazy ";
  609.             if ((=== twig_compare(twig_length_filter($this->envtwig_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"falsefalsefalse23)), 0))) {
  610.                 echo "tiaser-carousel";
  611.             }
  612.             echo "\"
  613.              data-original=\"";
  614.             // line 24
  615.             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"falsefalsefalse24), 500324), "html"nulltrue);
  616.             echo "\"
  617.              onclick=\"window.open('";
  618.             // line 25
  619.             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"nulltrue);
  620.             echo "' + location.search);\">
  621.             ";
  622.         }
  623.         // line 27
  624.         echo "            ";
  625.         
  626.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  627.         
  628.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  629.     }
  630.     // line 101
  631.     public function block_favorite($context, array $blocks = [])
  632.     {
  633.         $macros $this->macros;
  634.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  635.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""favorite"));
  636.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  637.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""favorite"));
  638.         
  639.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  640.         
  641.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  642.     }
  643.     public function getTemplateName()
  644.     {
  645.         return "Slivki/offers/teaser.html.twig";
  646.     }
  647.     public function isTraitable()
  648.     {
  649.         return false;
  650.     }
  651.     public function getDebugInfo()
  652.     {
  653.         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,);
  654.     }
  655.     public function getSourceContext()
  656.     {
  657.         return new Source("{% set teaserAnchorClass = '' %}
  658. {% if not offer.isHideNoveltyLabel() and offer.getActiveSince().diff(date()).days <= 5 %}
  659.     {% set teaserAnchorClass = 'newProduct' %}
  660. {% endif %}
  661. {% set offerURL = urlWithDomain is defined ? urlWithDomain : getURL(\"Slivki:Default:details\", offer.getID(), true) %}
  662. {% set teaserStatDays = 30 %}
  663. {% set daysFromStrart = date(offer.getActiveSince|date).diff(date('now')).days %}
  664. {% set daysFromStrart = daysFromStrart < teaserStatDays ? daysFromStrart : teaserStatDays %}
  665. {% set daysFromStrart = daysFromStrart == 0 ? 1 : daysFromStrart %}
  666.     {% if isMailing is defined and isMailing %}
  667.         <input type=\"checkbox\" class=\"marketActionCheckBox\"/>
  668.         <input type=\"checkbox\" style=\"float: left;\" name=\"mainTeaser\" class=\"marketActionRadio\"/>
  669.     {% endif %}
  670. <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%' }}>
  671.     {% block imageDiv %}
  672.     {% if noLazyLoad is defined %}
  673.     <div class=\"images {% if offer.getDetailMedias()|length > 0 %}tiaser-carousel{% endif %}\"
  674.          style=\"display: block; background-image: url('{{ getImageURL(offer.getTeaserMedia(), 250, 162) }}')\"
  675.          onclick=\"window.open('{{ offerURL }}' + location.search);\">
  676.         {% else %}
  677.         <div class=\"images lazy {% if offer.getDetailMedias()|length > 0 %}tiaser-carousel{% endif %}\"
  678.              data-original=\"{{ getImageURL(offer.getTeaserMedia(), 500, 324) }}\"
  679.              onclick=\"window.open('{{ offerURL }}' + location.search);\">
  680.             {% endif %}
  681.             {% endblock %}
  682.             <img class=\"image\" src=\"{{ getImageURL(offer.getTeaserMedia(), 500, 324) }}\"
  683.                  alt=\"\"/>
  684.             {% for media in offer.getDetailMedias()|slice(1, 8) %}
  685.                 <img class=\"image d-none\" src=\"{{ getImageURL(media, 500, 324) }}\"
  686.                      alt=\"{{ media.getDescription() }}\" border=\"0\"/>
  687.             {% endfor %}
  688.             {% if offer.getDetailMedias()|length > 8 %}
  689.                 <div class=\"brazzers-more d-none\">
  690.                     <div class=\"brazzers-more__wrapper\">
  691.                         <div class=\"brazzers-more__icon\"></div>
  692.                         <div class=\"brazzers-more__text\">Еще {{ offer.getDetailMedias()|length - 3 }} фото</div>
  693.                     </div>
  694.                 </div>
  695.             {% endif %}
  696.             {% if galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  697.                 <div class=\"story-teaser-img\">
  698.                     <img src=\"/images/play-offer-story.svg\" alt=\"Истории\"/>
  699.                 </div>
  700.             {% endif %}
  701.             {% if not offer.isHideNoveltyLabel() and offer.getActiveSince().diff(date()).days <= constant('Slivki\\\\Services\\\\Category\\\\NewOfferCategoryService::NEW_OFFER_PERIOD_DAYS') %}
  702.                 <div class=\"new-offer-watermark\">
  703.                     Новая
  704.                 </div>
  705.             {% endif %}
  706.             {% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().getDeliveryWorkingTime() is not null %}
  707.             {% set workingDeliveryTime = (offer.getOnlineOrderSettings().getDeliveryWorkingTime())|json_decode()[\"now\"|date(\"w\")] %}
  708.             {% set startTime = workingDeliveryTime.startTime|date('H:i') %}
  709.             {% set endTime = workingDeliveryTime.endTime|date('H:i') %}
  710.             {% set dayOff = workingDeliveryTime.dayOff %}
  711.             {% set nowTime = \"now\"|date(\"H:i\") %}
  712.             {% if startTime == endTime and not dayOff %}ы
  713.                 <a href=\"{{ offerURL }}\" class=\"open-delivery-info d-none\" target=\"_blank\">ДОСТАВКА КРУГЛОСУТОЧНО</a>
  714.                 {% endif %}
  715.             {% endif %}
  716.             <a href=\"{{ offerURL }}\" target=\"_blank\" class=\"details-link {{ teaserAnchorClass }}\">
  717.                 {% if offer.getCaptionName()|trim %}
  718.                     <div class=\"info-line\" style=\"background-color: {{ offer.getCaptionColor() }};\">
  719.                         <div>{{ offer.getCaptionName() }}</div>
  720.                     </div>
  721.                 {% endif %}
  722.                 {% if offer.getRegionalCaptionName()|trim %}
  723.                     <div class=\"info-line regional\"
  724.                          style=\"background-color: {{ offer.getRegionalCaptionColor() }}; display: none;\">
  725.                         <div>{{ offer.getRegionalCaptionName() }}</div>
  726.                     </div>
  727.                 {% endif %}
  728.             </a>
  729.             {% if offer.getHint() and offer.getHint()|trim != '' %}
  730.                 <div class=\"teaser-hint\">
  731.                     <div class=\"teaser-hint-inner\">{{ offer.getHint()|raw }}</div>
  732.                 </div>
  733.             {% endif %}
  734.             {% if showManicurePrice is defined and showManicurePrice and offer.getPrice() %}
  735.                 <div class=\"info-line manicure-price\">
  736.                     <div>Маникюр под ключ {{ offer.getPrice()|number_format(2, ',', '') }} руб</div>
  737.                 </div>
  738.             {% endif %}
  739.         </div>
  740.         {% set supplierLogo = getTeaserWatermark(offer.getID()) %}
  741.         {% if supplierLogo|length > 0 %}
  742.             {% set supplierLogoWidth = supplierLogo.width ? supplierLogo.width : 65 %}
  743.             <div class=\"teaser--supplier-logo\">
  744.                 <img style=\"{{ supplierLogo.width ? 'width:' ~ supplierLogo.width ~ 'px;' }}{{ supplierLogo.height ? 'height:' ~ supplierLogo.height ~ 'px;' }}\"
  745.                      src=\"{{ getImageURL(supplierLogo.watermark, 2 * supplierLogoWidth, 0) }}\" alt=\"\"/>
  746.             </div>
  747.         {% endif %}
  748.         {% block favorite %}{% endblock %}
  749.         {% if not offer.isWithoutCodes() %}
  750.             <div class=\"discount-label\">{{ offer.getDiscountLabelText() }}</div>
  751.         {% endif %}
  752.         <div class=\"top\">
  753.             {% set rating = offer.getRating() %}
  754.             {% set ratingPercentage = rating * 100 / 5 %}
  755.             {% set ratingCount = getOfferCommentsCount(offer.getID()) %}
  756.             {% if rating > 0 %}
  757.                 <div class=\"d-flex align-items-center\">
  758.                         <div class=\"star-ratings-css\">
  759.                             <div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\">
  760.                                 <span>★</span>
  761.                             </div>
  762.                         </div>
  763.                         <div class=\"rating-value\" style=\"margin-right: 2px;\">{{ rating|round(2, 'ceil') }}</div>
  764.                     {% if ratingCount > 0 %}
  765.                         <div class=\"rating-value\" data-toggle=\"tooltip\" data-placement=\"top\"
  766.                              data-original-title=\"Количество комментариев к данной акции\">
  767.                             ({{ getOfferCommentsCount(offer.getID()) }})
  768.                         </div>
  769.                     {% endif %}
  770.                 </div>
  771.             {% endif %}
  772.             {% if offer.getGeoLocations().count() > 0 %}
  773.                 <div class=\"geo-location-block\">
  774.                     <div class=\"distance\" data-toggle=\"distance-tooltip\" data-placement=\"top\"
  775.                          data-original-title=\"Расстояние от Вас до объекта\">
  776.                         <i class=\"slivki-icon slivki-icon-direction\"></i>
  777.                         <img class='ajaxLoader' src='/images/ajax-loader-16x16.gif' alt='Загрузка...'/>
  778.                         <span></span>
  779.                     </div>
  780.                     {% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
  781.                 </div>
  782.             {% endif %}
  783.         </div>
  784.         <div class=\"teaser-same-height\">
  785.             <div class=\"title\">
  786.                 <a href=\"{{ offerURL }}\" target=\"_blank\" class=\"details-link \"
  787.                    style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</a>
  788.             </div>
  789.         </div>
  790.         <a class=\"details-link marketActionLink\" href=\"{{ offerURL }}\" target=\"_blank\">
  791.             <div class=\"address\" data-toggle=\"tooltip\" data-placement=\"top\"
  792.                  data-original-title=\"Ориентир\">{{ offer.getAddress() }}</div>
  793.         </a>
  794.         <div class=\"bottom d-flex font-size-0680\">
  795.             {% set daysLeft = offer.getActiveTill().diff(date()).days %}
  796.             {% if not offer.isWithoutCodes() %}
  797.                 <a href=\"{{ offerURL }}\" target=\"_blank\" class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  798.                    data-original-title='Взято кодов за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
  799.                     <i class=\"slivki-icon slivki-icon-users\"></i>
  800.                     <span>{{ getOfferMonthlyPurchaseCount(offer.getID()) }}</span>
  801.                 </a>
  802.             {% endif %}
  803.             <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  804.                  data-original-title='Просмотров за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
  805.                 <i class=\"slivki-icon slivki-icon-eye\"></i>
  806.                 <span>{{ getOfferVisitCount(offer) }}</span>
  807.             </div>
  808.             {% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() and getOfferConversion(offer.getID()) > 0 %}
  809.                 <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\" data-html=\"true\" rel=\"tooltip\"
  810.                      data-original-title='Актуальность за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
  811.                     <img src=\"/images/stats-alt-2.svg\" style=\"margin: 0 .2em;\"/>
  812.                     <span>{{ getOfferConversion(offer.getID()) }}%</span>
  813.                 </div>
  814.             {% endif %}
  815.             {% if offer.getActiveSince() <= date() and offer.getActiveTill() >= date() and not offer.isWithoutCodes() %}
  816.                 <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  817.                      data-original-title='Дней до окончания действия акции'>
  818.                     <i class=\"slivki-icon slivki-icon-clock\"></i>
  819.                     <span class=\"daystr\">{{ daysLeft == 0 ? 0.5 : daysLeft }} {{ daysLeft > 0 ? ['день', 'дня', 'дней']|plural(daysLeft) : 'дня' }}</span>
  820.                 </div>
  821.             {% endif %}
  822.         </div>
  823.         <div class=\"w-100 d-flex\" style=\"flex-wrap: wrap;\">
  824.             {% if offer.isFoodOnlineOrderAllowedOnSite() %}
  825.                 <a href=\"{{ offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') ? getLinkGiftCertificateOnlineOrderByOnlyCode(offer) : getLinkOnlineOrder(offer) }}\"
  826.                    class=\"top-code-online-order utm-added\">Онлайн-заказ</a>
  827.             {% endif %}
  828.             {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
  829.                 <a href=\"/gift-certificate/select/{{ offer.getID() }}{{ offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS')  ? '/code' : '' }}\"
  830.                    class=\"top-code-online-order utm-added\">Онлайн-покупка</a>
  831.             {% endif %}
  832.             {% if offer.isTireOnlineOrderAllowedOnSite() %}
  833.                 <a href=\"{{ offer.getOnlineRegistrationLink() }}\" class=\"top-code-online-order utm-added\">Онлайн-запись</a>
  834.             {% endif %}
  835.             {% if offer.isInFreeCodesCategory() %}
  836.                 <div class=\"top-code\" data-toggle=\"tooltip\" data-placement=\"top\"
  837.                      data-original-title='Код скидки предоставляется сайтом бесплатно'>Код 0 руб.
  838.                 </div>
  839.             {% endif %}
  840.             {% if offer.isFoodOnlineOrderAllowedOnSite() and
  841.                 offer.getOnlineOrderSettings() is not null and
  842.                 (offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'] is defined and
  843.                 offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] is defined and
  844.                 offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and
  845.                 isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')))
  846.                 or
  847.                 offer.isFoodOnlineOrderAllowedOnSite()  and
  848.                 (offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'] is defined and
  849.                 offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] is defined and
  850.                 offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and
  851.                 isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')))
  852.                 or
  853.                 offer is defined and
  854.                 offer is not null and
  855.                 offer.getAllowedPaymentMethodsForCertificate() is defined and
  856.                 offer.getAllowedPaymentMethodsForCertificate() is not null and
  857.                 4 in offer.getAllowedPaymentMethodsForCertificate()|keys and
  858.                 offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and
  859.                 offer.isGiftCertificateOnlineOrderAllowedOnSite() and
  860.                 isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
  861.             %}
  862.                 <a class=\"js-slivki-pay-button top-code-online-order utm-added\">SlivkiPay + 5%</a>
  863.             {% endif %}
  864.             {% if offer.getDeliveryTimeTeaser() %}
  865.                 <div class=\"time-delivery d-flex justify-content-center align-items-center\">
  866.                     <img width=\"22\" height=\"17\" class=\"mr-1\" src=\"/images/icon_avto.svg\"/>
  867.                     <span class=\"color-white\">{{ offer.getDeliveryTimeTeaser() }} {{ offer.getDeliveryTimeTeaser() != 'Предзаказ' ? ' мин'}}</span>
  868.                 </div>
  869.             {% endif %}
  870.         </div>
  871.         {% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().getDeliveryWorkingTime() is not null %}
  872.             {% set workingDeliveryTime = (offer.getOnlineOrderSettings().getDeliveryWorkingTime())|json_decode()[\"now\"|date(\"w\")] %}
  873.             {% set startTime = workingDeliveryTime.startTime|date('H:i') %}
  874.             {% set endTime = workingDeliveryTime.endTime|date('H:i') %}
  875.             {% set dayOff = workingDeliveryTime.dayOff %}
  876.             {% set nowTime = \"now\"|date(\"H:i\") %}
  877.             {% if nowTime >= startTime and nowTime <= endTime and not dayOff %}
  878.                 <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка до {{ workingDeliveryTime.endTime }}</p>
  879.             {% elseif nowTime < startTime and startTime != endTime and not dayOff %}
  880.                 <p class=\"teaser-working-time-delivery closed-delivery d-none\">Закрыто. Доставка с {{ workingDeliveryTime.startTime }}</p>
  881.             {% elseif startTime == endTime and not dayOff %}
  882.                 <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка круглосуточно</p>
  883.             {% elseif dayOff %}
  884.                 <p class=\"teaser-working-time-delivery closed-delivery d-none\">Предзаказ</p>
  885.             {% endif %}
  886.         {% endif %}
  887.     </div>""Slivki/offers/teaser.html.twig""/mnt/data/virtwww/dima/templates/Slivki/offers/teaser.html.twig");
  888.     }
  889. }