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 "\">
  71.     ";
  72.         // line 17
  73.         $this->displayBlock('imageDiv'$context$blocks);
  74.         // line 28
  75.         echo "            <img class=\"image\" src=\"";
  76.         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);
  77.         echo "\"
  78.                  alt=\"\"/>
  79.             ";
  80.         // line 30
  81.         $context['_parent'] = $context;
  82.         $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); })()), "getShopMedias", [], "method"falsefalsefalse30), 08));
  83.         foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  84.             // line 31
  85.             echo "                <img class=\"image d-none\" src=\"";
  86.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 500324), "html"nulltrue);
  87.             echo "\"
  88.                      alt=\"";
  89.             // line 32
  90.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse32), "html"nulltrue);
  91.             echo "\" border=\"0\"/>
  92.             ";
  93.         }
  94.         $_parent $context['_parent'];
  95.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  96.         $context array_intersect_key($context$_parent) + $_parent;
  97.         // line 34
  98.         echo "            ";
  99.         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); })()), "getShopMedias", [], "method"falsefalsefalse34)), 8))) {
  100.             // line 35
  101.             echo "                <div class=\"brazzers-more d-none\">
  102.                     <div class=\"brazzers-more__wrapper\">
  103.                         <div class=\"brazzers-more__icon\"></div>
  104.                         <div class=\"brazzers-more__text\">Еще ";
  105.             // line 38
  106.             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); })()), "getShopMedias", [], "method"falsefalsefalse38)) - 3), "html"nulltrue);
  107.             echo " фото</div>
  108.                     </div>
  109.                 </div>
  110.             ";
  111.         }
  112.         // line 42
  113.         echo "            ";
  114.         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)))) {
  115.             // line 43
  116.             echo "                <div class=\"story-teaser-img\">
  117.                     <img src=\"/images/play-offer-story.svg\" alt=\"Истории\"/>
  118.                 </div>
  119.             ";
  120.         }
  121.         // line 47
  122.         echo "            ";
  123.         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); })()), "getRenewedOn", [], "method"falsefalsefalse47), "diff", [=> twig_date_converter($this->env)], "method"falsefalsefalse47), "days", [], "any"falsefalsefalse47), twig_constant("Slivki\\Services\\Category\\NewOfferCategoryService::NEW_OFFER_PERIOD_DAYS"))))) {
  124.             // line 48
  125.             echo "                <div class=\"new-offer-watermark\">
  126.                     Новая
  127.                 </div>
  128.             ";
  129.         }
  130.         // line 52
  131.         echo "            ";
  132.         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)))) {
  133.             // line 53
  134.             echo "            ";
  135.             $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);
  136.             // line 54
  137.             echo "            ";
  138.             $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");
  139.             // line 55
  140.             echo "            ";
  141.             $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");
  142.             // line 56
  143.             echo "            ";
  144.             $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);
  145.             // line 57
  146.             echo "            ";
  147.             $context["nowTime"] = twig_date_format_filter($this->env"now""H:i");
  148.             // line 58
  149.             echo "            ";
  150.             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); })()))) {
  151.                 echo 
  152.                 <a href=\"";
  153.                 // line 59
  154.                 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);
  155.                 echo "\" class=\"open-delivery-info d-none\" target=\"_blank\">ДОСТАВКА КРУГЛОСУТОЧНО</a>
  156.                 ";
  157.             }
  158.             // line 61
  159.             echo "            ";
  160.         }
  161.         // line 62
  162.         echo "            <a href=\"";
  163.         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);
  164.         echo "\" target=\"_blank\" class=\"details-link ";
  165.         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);
  166.         echo "\">
  167.                 ";
  168.         // line 63
  169.         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))) {
  170.             // line 64
  171.             echo "                    <div class=\"info-line\" style=\"background-color: ";
  172.             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);
  173.             echo ";\">
  174.                         <div>";
  175.             // line 65
  176.             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);
  177.             echo "</div>
  178.                     </div>
  179.                 ";
  180.         }
  181.         // line 68
  182.         echo "
  183.                 ";
  184.         // line 69
  185.         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))) {
  186.             // line 70
  187.             echo "                    <div class=\"info-line regional\"
  188.                          style=\"background-color: ";
  189.             // line 71
  190.             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);
  191.             echo "; display: none;\">
  192.                         <div>";
  193.             // line 72
  194.             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);
  195.             echo "</div>
  196.                     </div>
  197.                 ";
  198.         }
  199.         // line 75
  200.         echo "
  201.             </a>
  202.             ";
  203.         // line 78
  204.         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)), "")))) {
  205.             // line 79
  206.             echo "                <div class=\"teaser-hint\">
  207.                     <div class=\"teaser-hint-inner\">";
  208.             // line 80
  209.             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);
  210.             echo "</div>
  211.                 </div>
  212.             ";
  213.         }
  214.         // line 83
  215.         echo "
  216.             ";
  217.         // line 84
  218.         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))) {
  219.             // line 85
  220.             echo "                <div class=\"info-line manicure-price\">
  221.                     <div>Маникюр под ключ ";
  222.             // line 86
  223.             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);
  224.             echo " руб</div>
  225.                 </div>
  226.             ";
  227.         }
  228.         // line 89
  229.         echo "
  230.         </div>
  231.         ";
  232.         // line 92
  233.         $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));
  234.         // line 93
  235.         echo "
  236.         ";
  237.         // line 94
  238.         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))) {
  239.             // line 95
  240.             echo "            ";
  241.             $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));
  242.             // line 96
  243.             echo "            <div class=\"teaser--supplier-logo\">
  244.                 <img style=\"";
  245.             // line 97
  246.             ((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 ("")));
  247.             ((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 ("")));
  248.             echo "\"
  249.                      src=\"";
  250.             // line 98
  251.             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);
  252.             echo "\" alt=\"\"/>
  253.             </div>
  254.         ";
  255.         }
  256.         // line 101
  257.         echo "        ";
  258.         $this->displayBlock('favorite'$context$blocks);
  259.         // line 102
  260.         echo "
  261.         <div class=\"discount-label\">";
  262.         // line 103
  263.         ((twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'103$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse103)) ? (print ("пока без скидки")) : (print (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))));
  264.         echo "</div>
  265.         <div class=\"top\">
  266.             ";
  267.         // line 105
  268.         $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.'105$this->source); })()), "getRating", [], "method"falsefalsefalse105);
  269.         // line 106
  270.         echo "            ";
  271.         $context["ratingPercentage"] = (((isset($context["rating"]) || array_key_exists("rating"$context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.'106$this->source); })()) * 100) / 5);
  272.         // line 107
  273.         echo "            ";
  274.         $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.'107$this->source); })()), "getID", [], "method"falsefalsefalse107));
  275.         // line 108
  276.         echo "
  277.             <div class=\"d-flex align-items-center\">
  278.                 ";
  279.         // line 110
  280.         if (((=== twig_compare((isset($context["ratingCount"]) || array_key_exists("ratingCount"$context) ? $context["ratingCount"] : (function () { throw new RuntimeError('Variable "ratingCount" does not exist.'110$this->source); })()), 0)) || (=== 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)))) {
  281.             // line 111
  282.             echo "                    <div class=\"star-ratings-css\">
  283.                         ";
  284.             // line 112
  285.             if ((=== twig_compare((isset($context["rating"]) || array_key_exists("rating"$context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.'112$this->source); })()), 0))) {
  286.                 // line 113
  287.                 echo "                            <div class=\"star-ratings-css-top\" style=\"width: ";
  288.                 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.'113$this->source); })()), "html"nulltrue);
  289.                 echo "%\">
  290.                                 <span>★</span>
  291.                             </div>
  292.                         ";
  293.             } else {
  294.                 // line 117
  295.                 echo "                            <div class=\"star-ratings-css-bottom\">
  296.                                 <span>★</span>
  297.                             </div>
  298.                         ";
  299.             }
  300.             // line 121
  301.             echo "                    </div>
  302.                     <div class=\"rating-value\" style=\"margin-right: 2px;\">";
  303.             // line 122
  304.             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.'122$this->source); })()), 2"ceil"), "html"nulltrue);
  305.             echo "</div>
  306.                     <div class=\"rating-value\" data-toggle=\"tooltip\" data-placement=\"top\"
  307.                          data-original-title=\"Количество комментариев к данной акции\">
  308.                         (";
  309.             // line 125
  310.             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.'125$this->source); })()), "getID", [], "method"falsefalsefalse125)), "html"nulltrue);
  311.             echo ")
  312.                     </div>
  313.                 ";
  314.         }
  315.         // line 128
  316.         echo "            </div>
  317.             ";
  318.         // line 130
  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.'130$this->source); })()), "getGeoLocations", [], "method"falsefalsefalse130), "count", [], "method"falsefalsefalse130), 0))) {
  320.             // line 131
  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 138
  330.             $this->loadTemplate("Slivki/offers/geo_location_data.html.twig""Slivki/offers/teaser.html.twig"138)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'138$this->source); })())]));
  331.             // line 139
  332.             echo "                </div>
  333.             ";
  334.         }
  335.         // line 141
  336.         echo "        </div>
  337.         <div class=\"teaser-same-height\">
  338.             <div class=\"title\">
  339.                 <a href=\"";
  340.         // line 145
  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.'145$this->source); })()), "html"nulltrue);
  342.         echo "\" target=\"_blank\" class=\"details-link \"
  343.                    style=\"color: ";
  344.         // line 146
  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.'146$this->source); })()), "getTitleFontColor", [], "method"falsefalsefalse146), "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.'146$this->source); })()), "getTitle", [], "method"falsefalsefalse146);
  348.         echo "</a>
  349.             </div>
  350.         </div>
  351.         <a class=\"details-link marketActionLink\" href=\"";
  352.         // line 150
  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.'150$this->source); })()), "html"nulltrue);
  354.         echo "\" target=\"_blank\">
  355.             <div class=\"address\" data-toggle=\"tooltip\" data-placement=\"top\"
  356.                  data-original-title=\"Ориентир\">";
  357.         // line 152
  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.'152$this->source); })()), "getAddress", [], "method"falsefalsefalse152), "html"nulltrue);
  359.         echo "</div>
  360.         </a>
  361.         <div class=\"bottom d-flex font-size-0680\">
  362.             ";
  363.         // line 156
  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.'156$this->source); })()), "getActiveTill", [], "method"falsefalsefalse156), "diff", [=> twig_date_converter($this->env)], "method"falsefalsefalse156), "days", [], "any"falsefalsefalse156);
  365.         // line 157
  366.         echo "
  367.             ";
  368.         // line 158
  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.'158$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse158)) {
  370.             // line 159
  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.'159$this->source); })()), "html"nulltrue);
  373.             echo "\" target=\"_blank\" class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  374.                    data-original-title='Взято кодов за ";
  375.             // line 160
  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.'160$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.'160$this->source); })())), "html"nulltrue);
  379.             echo "'>
  380.                     <i class=\"slivki-icon slivki-icon-users\"></i>
  381.                     <span>";
  382.             // line 162
  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.'162$this->source); })()), "getID", [], "method"falsefalsefalse162)), "html"nulltrue);
  384.             echo "</span>
  385.                 </a>
  386.             ";
  387.         }
  388.         // line 165
  389.         echo "
  390.             <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  391.                  data-original-title='Просмотров за ";
  392.         // line 167
  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.'167$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.'167$this->source); })())), "html"nulltrue);
  396.         echo "'>
  397.                 <i class=\"slivki-icon slivki-icon-eye\"></i>
  398.                 <span>";
  399.         // line 169
  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.'169$this->source); })())), "html"nulltrue);
  401.         echo "</span>
  402.             </div>
  403.             ";
  404.         // line 172
  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.'172$this->source); })()), "isInFreeCodesCategory", [], "method"falsefalsefalse172) &&  !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.'172$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse172))) {
  406.             // line 173
  407.             echo "                <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  408.                      data-original-title='Кол-во продаж к кол-ву просмотров. <br> Конверсия за ";
  409.             // line 174
  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.'174$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.'174$this->source); })())), "html"nulltrue);
  413.             echo "'>
  414.                     <img src=\"/images/stats-alt-2.svg\" style=\"margin: 0 .2em;\"/>
  415.                     <span>";
  416.             // line 176
  417.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->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.'176$this->source); })()), "getID", [], "method"falsefalsefalse176)), "html"nulltrue);
  418.             echo "%</span>
  419.                 </div>
  420.             ";
  421.         }
  422.         // line 179
  423.         echo "
  424.             ";
  425.         // line 180
  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.'180$this->source); })()), "getActiveSince", [], "method"falsefalsefalse180), 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.'180$this->source); })()), "getActiveTill", [], "method"falsefalsefalse180), 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.'180$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse180))) {
  427.             // line 181
  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 184
  433.             (((=== twig_compare((isset($context["daysLeft"]) || array_key_exists("daysLeft"$context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.'184$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.'184$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.'184$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.'184$this->source); })())), "html"nulltrue))) : (print ("дня")));
  436.             echo "</span>
  437.                 </div>
  438.             ";
  439.         }
  440.         // line 187
  441.         echo "
  442.         </div>
  443.         <div class=\"w-100 d-flex\">
  444.             ";
  445.         // line 190
  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.'190$this->source); })()), "isOneOfOnlineOrderAllowedOnSite", [], "method"falsefalsefalse190) &&  !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.'190$this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse190))) {
  447.             // line 191
  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.'191$this->source); })()), "getID", [], "method"falsefalsefalse191), 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.'191$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.'191$this->source); })())))), "html"nulltrue);
  450.             echo "\"
  451.                    class=\"top-code-online-order\">Онлайн-заказ</a>
  452.             ";
  453.         } elseif (twig_get_attribute($this->env$this->source,         // line 193
  454. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'193$this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse193)) {
  455.             // line 194
  456.             echo "                <a href=\"/online-zapis/";
  457.             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.'194$this->source); })()), "getID", [], "method"falsefalsefalse194), "html"nulltrue);
  458.             echo "\" class=\"top-code-online-order\">Онлайн-запись</a>
  459.             ";
  460.         }
  461.         // line 196
  462.         echo "            ";
  463.         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.'196$this->source); })()), "isInFreeCodesCategory", [], "method"falsefalsefalse196)) {
  464.             // line 197
  465.             echo "                <div class=\"top-code\" data-toggle=\"tooltip\" data-placement=\"top\"
  466.                      data-original-title='Код скидки предоставляется сайтом бесплатно'>Код 0 руб.
  467.                 </div>
  468.             ";
  469.         }
  470.         // line 201
  471.         echo "            ";
  472.         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.'201$this->source); })()), "getDeliveryTimeTeaser", [], "method"falsefalsefalse201)) {
  473.             // line 202
  474.             echo "                <div class=\"time-delivery d-flex justify-content-center align-items-center\">
  475.                     <img width=\"22\" height=\"17\" class=\"mr-1\" src=\"/images/icon_avto.svg\"/>
  476.                     <span class=\"color-white\">";
  477.             // line 204
  478.             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.'204$this->source); })()), "getDeliveryTimeTeaser", [], "method"falsefalsefalse204), "html"nulltrue);
  479.             echo " мин</span>
  480.                 </div>
  481.             ";
  482.         }
  483.         // line 207
  484.         echo "        </div>
  485.         ";
  486.         // line 208
  487.         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.'208$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse208)) &&  !(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.'208$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse208), "getDeliveryWorkingTime", [], "method"falsefalsefalse208)))) {
  488.             // line 209
  489.             echo "            ";
  490.             $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.'209$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse209), "getDeliveryWorkingTime", [], "method"falsefalsefalse209)), twig_date_format_filter($this->env"now""w"), [], "array"falsefalsefalse209);
  491.             // line 210
  492.             echo "            ";
  493.             $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.'210$this->source); })()), "startTime", [], "any"falsefalsefalse210), "H:i");
  494.             // line 211
  495.             echo "            ";
  496.             $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.'211$this->source); })()), "endTime", [], "any"falsefalsefalse211), "H:i");
  497.             // line 212
  498.             echo "            ";
  499.             $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.'212$this->source); })()), "dayOff", [], "any"falsefalsefalse212);
  500.             // line 213
  501.             echo "            ";
  502.             $context["nowTime"] = twig_date_format_filter($this->env"now""H:i");
  503.             // line 214
  504.             echo "
  505.             ";
  506.             // line 215
  507.             if ((((<= twig_compare((isset($context["nowTime"]) || array_key_exists("nowTime"$context) ? $context["nowTime"] : (function () { throw new RuntimeError('Variable "nowTime" does not exist.'215$this->source); })()), (isset($context["startTime"]) || array_key_exists("startTime"$context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.'215$this->source); })()))) && (>= twig_compare((isset($context["nowTime"]) || array_key_exists("nowTime"$context) ? $context["nowTime"] : (function () { throw new RuntimeError('Variable "nowTime" does not exist.'215$this->source); })()), (isset($context["endTime"]) || array_key_exists("endTime"$context) ? $context["endTime"] : (function () { throw new RuntimeError('Variable "endTime" does not exist.'215$this->source); })())))) &&  !(isset($context["dayOff"]) || array_key_exists("dayOff"$context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.'215$this->source); })()))) {
  508.                 // line 216
  509.                 echo "                <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка до ";
  510.                 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.'216$this->source); })()), "endTime", [], "any"falsefalsefalse216), "html"nulltrue);
  511.                 echo "</p>
  512.             ";
  513.             } elseif ((((-=== twig_compare(            // line 217
  514. (isset($context["nowTime"]) || array_key_exists("nowTime"$context) ? $context["nowTime"] : (function () { throw new RuntimeError('Variable "nowTime" does not exist.'217$this->source); })()), (isset($context["startTime"]) || array_key_exists("startTime"$context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.'217$this->source); })()))) && (!== twig_compare((isset($context["startTime"]) || array_key_exists("startTime"$context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.'217$this->source); })()), (isset($context["endTime"]) || array_key_exists("endTime"$context) ? $context["endTime"] : (function () { throw new RuntimeError('Variable "endTime" does not exist.'217$this->source); })())))) &&  !(isset($context["dayOff"]) || array_key_exists("dayOff"$context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.'217$this->source); })()))) {
  515.                 // line 218
  516.                 echo "                <p class=\"teaser-working-time-delivery closed-delivery d-none\">Закрыто. Доставка с ";
  517.                 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.'218$this->source); })()), "startTime", [], "any"falsefalsefalse218), "html"nulltrue);
  518.                 echo "</p>
  519.             ";
  520.             } elseif (((=== twig_compare(            // line 219
  521. (isset($context["startTime"]) || array_key_exists("startTime"$context) ? $context["startTime"] : (function () { throw new RuntimeError('Variable "startTime" does not exist.'219$this->source); })()), (isset($context["endTime"]) || array_key_exists("endTime"$context) ? $context["endTime"] : (function () { throw new RuntimeError('Variable "endTime" does not exist.'219$this->source); })()))) &&  !(isset($context["dayOff"]) || array_key_exists("dayOff"$context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.'219$this->source); })()))) {
  522.                 // line 220
  523.                 echo "                <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка круглосуточно</p>
  524.             ";
  525.             } elseif (            // line 221
  526. (isset($context["dayOff"]) || array_key_exists("dayOff"$context) ? $context["dayOff"] : (function () { throw new RuntimeError('Variable "dayOff" does not exist.'221$this->source); })())) {
  527.                 // line 222
  528.                 echo "                <p class=\"teaser-working-time-delivery closed-delivery d-none\">Предзаказ</p>
  529.             ";
  530.             }
  531.             // line 224
  532.             echo "        ";
  533.         }
  534.         // line 225
  535.         echo "    </div>";
  536.         
  537.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  538.         
  539.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  540.     }
  541.     // line 17
  542.     public function block_imageDiv($context, array $blocks = [])
  543.     {
  544.         $macros $this->macros;
  545.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  546.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""imageDiv"));
  547.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  548.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""imageDiv"));
  549.         // line 18
  550.         echo "    ";
  551.         if (array_key_exists("noLazyLoad"$context)) {
  552.             // line 19
  553.             echo "    <div class=\"images ";
  554.             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); })()), "getShopMedias", [], "method"falsefalsefalse19)), 0))) {
  555.                 echo "tiaser-carousel";
  556.             }
  557.             echo "\"
  558.          style=\"display: block; background-image: url('";
  559.             // line 20
  560.             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);
  561.             echo "')\"
  562.          onclick=\"window.open('";
  563.             // line 21
  564.             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);
  565.             echo "' + location.search);\">
  566.         ";
  567.         } else {
  568.             // line 23
  569.             echo "        <div class=\"images lazy ";
  570.             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); })()), "getShopMedias", [], "method"falsefalsefalse23)), 0))) {
  571.                 echo "tiaser-carousel";
  572.             }
  573.             echo "\"
  574.              data-original=\"";
  575.             // line 24
  576.             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);
  577.             echo "\"
  578.              onclick=\"window.open('";
  579.             // line 25
  580.             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);
  581.             echo "' + location.search);\">
  582.             ";
  583.         }
  584.         // line 27
  585.         echo "            ";
  586.         
  587.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  588.         
  589.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  590.     }
  591.     // line 101
  592.     public function block_favorite($context, array $blocks = [])
  593.     {
  594.         $macros $this->macros;
  595.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  596.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""favorite"));
  597.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  598.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""favorite"));
  599.         
  600.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  601.         
  602.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  603.     }
  604.     public function getTemplateName()
  605.     {
  606.         return "Slivki/offers/teaser.html.twig";
  607.     }
  608.     public function isTraitable()
  609.     {
  610.         return false;
  611.     }
  612.     public function getDebugInfo()
  613.     {
  614.         return array (  616 => 101,  606 => 27,  601 => 25,  597 => 24,  590 => 23,  585 => 21,  581 => 20,  574 => 19,  571 => 18,  561 => 17,  551 => 225,  548 => 224,  544 => 222,  542 => 221,  539 => 220,  537 => 219,  532 => 218,  530 => 217,  525 => 216,  523 => 215,  520 => 214,  517 => 213,  514 => 212,  511 => 211,  508 => 210,  505 => 209,  503 => 208,  500 => 207,  494 => 204,  490 => 202,  487 => 201,  481 => 197,  478 => 196,  472 => 194,  470 => 193,  464 => 191,  462 => 190,  457 => 187,  449 => 184,  444 => 181,  442 => 180,  439 => 179,  433 => 176,  426 => 174,  423 => 173,  421 => 172,  415 => 169,  408 => 167,  404 => 165,  398 => 162,  391 => 160,  386 => 159,  384 => 158,  381 => 157,  379 => 156,  372 => 152,  367 => 150,  358 => 146,  354 => 145,  348 => 141,  344 => 139,  342 => 138,  333 => 131,  331 => 130,  327 => 128,  321 => 125,  315 => 122,  312 => 121,  306 => 117,  298 => 113,  296 => 112,  293 => 111,  291 => 110,  287 => 108,  284 => 107,  281 => 106,  279 => 105,  274 => 103,  271 => 102,  268 => 101,  262 => 98,  257 => 97,  254 => 96,  251 => 95,  249 => 94,  246 => 93,  244 => 92,  239 => 89,  233 => 86,  230 => 85,  228 => 84,  225 => 83,  219 => 80,  216 => 79,  214 => 78,  209 => 75,  203 => 72,  199 => 71,  196 => 70,  194 => 69,  191 => 68,  185 => 65,  180 => 64,  178 => 63,  171 => 62,  168 => 61,  163 => 59,  158 => 58,  155 => 57,  152 => 56,  149 => 55,  146 => 54,  143 => 53,  140 => 52,  134 => 48,  131 => 47,  125 => 43,  122 => 42,  115 => 38,  110 => 35,  107 => 34,  99 => 32,  94 => 31,  90 => 30,  84 => 28,  82 => 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,);
  615.     }
  616.     public function getSourceContext()
  617.     {
  618.         return new Source("{% set teaserAnchorClass = '' %}
  619. {% if not offer.isHideNoveltyLabel() and offer.getActiveSince().diff(date()).days <= 5 %}
  620.     {% set teaserAnchorClass = 'newProduct' %}
  621. {% endif %}
  622. {% set offerURL = urlWithDomain is defined ? urlWithDomain : getURL(\"Slivki:Default:details\", offer.getID(), true) %}
  623. {% set teaserStatDays = 30 %}
  624. {% set daysFromStrart = date(offer.getActiveSince|date).diff(date('now')).days %}
  625. {% set daysFromStrart = daysFromStrart < teaserStatDays ? daysFromStrart : teaserStatDays %}
  626. {% set daysFromStrart = daysFromStrart == 0 ? 1 : daysFromStrart %}
  627.     {% if isMailing is defined and isMailing %}
  628.         <input type=\"checkbox\" class=\"marketActionCheckBox\"/>
  629.         <input type=\"checkbox\" style=\"float: left;\" name=\"mainTeaser\" class=\"marketActionRadio\"/>
  630.     {% endif %}
  631. <div class=\"stock-group-item\" id='action{{ offer.getID() }}' data-id=\"{{ offer.getID() }}\">
  632.     {% block imageDiv %}
  633.     {% if noLazyLoad is defined %}
  634.     <div class=\"images {% if offer.getShopMedias()|length > 0 %}tiaser-carousel{% endif %}\"
  635.          style=\"display: block; background-image: url('{{ getImageURL(offer.getTeaserMedia(), 250, 162) }}')\"
  636.          onclick=\"window.open('{{ offerURL }}' + location.search);\">
  637.         {% else %}
  638.         <div class=\"images lazy {% if offer.getShopMedias()|length > 0 %}tiaser-carousel{% endif %}\"
  639.              data-original=\"{{ getImageURL(offer.getTeaserMedia(), 500, 324) }}\"
  640.              onclick=\"window.open('{{ offerURL }}' + location.search);\">
  641.             {% endif %}
  642.             {% endblock %}
  643.             <img class=\"image\" src=\"{{ getImageURL(offer.getTeaserMedia(), 500, 324) }}\"
  644.                  alt=\"\"/>
  645.             {% for media in offer.getShopMedias()|slice(0, 8) %}
  646.                 <img class=\"image d-none\" src=\"{{ getImageURL(media, 500, 324) }}\"
  647.                      alt=\"{{ media.getDescription() }}\" border=\"0\"/>
  648.             {% endfor %}
  649.             {% if offer.getShopMedias()|length > 8 %}
  650.                 <div class=\"brazzers-more d-none\">
  651.                     <div class=\"brazzers-more__wrapper\">
  652.                         <div class=\"brazzers-more__icon\"></div>
  653.                         <div class=\"brazzers-more__text\">Еще {{ offer.getShopMedias()|length - 3 }} фото</div>
  654.                     </div>
  655.                 </div>
  656.             {% endif %}
  657.             {% if galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  658.                 <div class=\"story-teaser-img\">
  659.                     <img src=\"/images/play-offer-story.svg\" alt=\"Истории\"/>
  660.                 </div>
  661.             {% endif %}
  662.             {% if not offer.isHideNoveltyLabel() and offer.getRenewedOn().diff(date()).days <= constant('Slivki\\\\Services\\\\Category\\\\NewOfferCategoryService::NEW_OFFER_PERIOD_DAYS') %}
  663.                 <div class=\"new-offer-watermark\">
  664.                     Новая
  665.                 </div>
  666.             {% endif %}
  667.             {% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().getDeliveryWorkingTime() is not null %}
  668.             {% set workingDeliveryTime = (offer.getOnlineOrderSettings().getDeliveryWorkingTime())|json_decode()[\"now\"|date(\"w\")] %}
  669.             {% set startTime = workingDeliveryTime.startTime|date('H:i') %}
  670.             {% set endTime = workingDeliveryTime.endTime|date('H:i') %}
  671.             {% set dayOff = workingDeliveryTime.dayOff %}
  672.             {% set nowTime = \"now\"|date(\"H:i\") %}
  673.             {% if startTime == endTime and not dayOff %}ы
  674.                 <a href=\"{{ offerURL }}\" class=\"open-delivery-info d-none\" target=\"_blank\">ДОСТАВКА КРУГЛОСУТОЧНО</a>
  675.                 {% endif %}
  676.             {% endif %}
  677.             <a href=\"{{ offerURL }}\" target=\"_blank\" class=\"details-link {{ teaserAnchorClass }}\">
  678.                 {% if offer.getCaptionName()|trim %}
  679.                     <div class=\"info-line\" style=\"background-color: {{ offer.getCaptionColor() }};\">
  680.                         <div>{{ offer.getCaptionName() }}</div>
  681.                     </div>
  682.                 {% endif %}
  683.                 {% if offer.getRegionalCaptionName()|trim %}
  684.                     <div class=\"info-line regional\"
  685.                          style=\"background-color: {{ offer.getRegionalCaptionColor() }}; display: none;\">
  686.                         <div>{{ offer.getRegionalCaptionName() }}</div>
  687.                     </div>
  688.                 {% endif %}
  689.             </a>
  690.             {% if offer.getHint() and offer.getHint()|trim != '' %}
  691.                 <div class=\"teaser-hint\">
  692.                     <div class=\"teaser-hint-inner\">{{ offer.getHint()|raw }}</div>
  693.                 </div>
  694.             {% endif %}
  695.             {% if showManicurePrice is defined and showManicurePrice and offer.getPrice() %}
  696.                 <div class=\"info-line manicure-price\">
  697.                     <div>Маникюр под ключ {{ offer.getPrice()|number_format(2, ',', '') }} руб</div>
  698.                 </div>
  699.             {% endif %}
  700.         </div>
  701.         {% set supplierLogo = getTeaserWatermark(offer.getID()) %}
  702.         {% if supplierLogo|length > 0 %}
  703.             {% set supplierLogoWidth = supplierLogo.width ? supplierLogo.width : 65 %}
  704.             <div class=\"teaser--supplier-logo\">
  705.                 <img style=\"{{ supplierLogo.width ? 'width:' ~ supplierLogo.width ~ 'px;' }}{{ supplierLogo.height ? 'height:' ~ supplierLogo.height ~ 'px;' }}\"
  706.                      src=\"{{ getImageURL(supplierLogo.watermark, 2 * supplierLogoWidth, 0) }}\" alt=\"\"/>
  707.             </div>
  708.         {% endif %}
  709.         {% block favorite %}{% endblock %}
  710.         <div class=\"discount-label\">{{ offer.isWithoutCodes() ? 'пока без скидки' : offer.getDiscountLabelText() }}</div>
  711.         <div class=\"top\">
  712.             {% set rating = offer.getRating() %}
  713.             {% set ratingPercentage = rating * 100 / 5 %}
  714.             {% set ratingCount = getOfferCommentsCount(offer.getID()) %}
  715.             <div class=\"d-flex align-items-center\">
  716.                 {% if ratingCount > 0 or rating > 0 %}
  717.                     <div class=\"star-ratings-css\">
  718.                         {% if rating > 0 %}
  719.                             <div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\">
  720.                                 <span>★</span>
  721.                             </div>
  722.                         {% else %}
  723.                             <div class=\"star-ratings-css-bottom\">
  724.                                 <span>★</span>
  725.                             </div>
  726.                         {% endif %}
  727.                     </div>
  728.                     <div class=\"rating-value\" style=\"margin-right: 2px;\">{{ rating|round(2, 'ceil') }}</div>
  729.                     <div class=\"rating-value\" data-toggle=\"tooltip\" data-placement=\"top\"
  730.                          data-original-title=\"Количество комментариев к данной акции\">
  731.                         ({{ getOfferCommentsCount(offer.getID()) }})
  732.                     </div>
  733.                 {% endif %}
  734.             </div>
  735.             {% if offer.getGeoLocations().count() > 0 %}
  736.                 <div class=\"geo-location-block\">
  737.                     <div class=\"distance\" data-toggle=\"distance-tooltip\" data-placement=\"top\"
  738.                          data-original-title=\"Расстояние от Вас до объекта\">
  739.                         <i class=\"slivki-icon slivki-icon-direction\"></i>
  740.                         <img class='ajaxLoader' src='/images/ajax-loader-16x16.gif' alt='Загрузка...'/>
  741.                         <span></span>
  742.                     </div>
  743.                     {% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
  744.                 </div>
  745.             {% endif %}
  746.         </div>
  747.         <div class=\"teaser-same-height\">
  748.             <div class=\"title\">
  749.                 <a href=\"{{ offerURL }}\" target=\"_blank\" class=\"details-link \"
  750.                    style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</a>
  751.             </div>
  752.         </div>
  753.         <a class=\"details-link marketActionLink\" href=\"{{ offerURL }}\" target=\"_blank\">
  754.             <div class=\"address\" data-toggle=\"tooltip\" data-placement=\"top\"
  755.                  data-original-title=\"Ориентир\">{{ offer.getAddress() }}</div>
  756.         </a>
  757.         <div class=\"bottom d-flex font-size-0680\">
  758.             {% set daysLeft = offer.getActiveTill().diff(date()).days %}
  759.             {% if not offer.isWithoutCodes() %}
  760.                 <a href=\"{{ offerURL }}\" target=\"_blank\" class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  761.                    data-original-title='Взято кодов за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
  762.                     <i class=\"slivki-icon slivki-icon-users\"></i>
  763.                     <span>{{ getOfferMonthlyPurchaseCount(offer.getID()) }}</span>
  764.                 </a>
  765.             {% endif %}
  766.             <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  767.                  data-original-title='Просмотров за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
  768.                 <i class=\"slivki-icon slivki-icon-eye\"></i>
  769.                 <span>{{ getOfferVisitCount(offer) }}</span>
  770.             </div>
  771.             {% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
  772.                 <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  773.                      data-original-title='Кол-во продаж к кол-ву просмотров. <br> Конверсия за {{ daysFromStrart }} {{ ['день', 'дня', 'дней']|plural(daysFromStrart) }}'>
  774.                     <img src=\"/images/stats-alt-2.svg\" style=\"margin: 0 .2em;\"/>
  775.                     <span>{{ getOfferConversion(offer.getID()) }}%</span>
  776.                 </div>
  777.             {% endif %}
  778.             {% if offer.getActiveSince() <= date() and offer.getActiveTill() >= date() and not offer.isWithoutCodes() %}
  779.                 <div class=\"bottom-item\" data-toggle=\"tooltip\" data-placement=\"top\"
  780.                      data-original-title='Дней до окончания действия акции'>
  781.                     <i class=\"slivki-icon slivki-icon-clock\"></i>
  782.                     <span class=\"daystr\">{{ daysLeft == 0 ? 0.5 : daysLeft }} {{ daysLeft > 0 ? ['день', 'дня', 'дней']|plural(daysLeft) : 'дня' }}</span>
  783.                 </div>
  784.             {% endif %}
  785.         </div>
  786.         <div class=\"w-100 d-flex\">
  787.             {% if offer.isOneOfOnlineOrderAllowedOnSite() and not offer.isTireOnlineOrderAllowedOnSite() %}
  788.                 <a href=\"{{ offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') ? getLinkGiftCertificateOnlineOrderByOnlyCode(offer) : getLinkOnlineOrder(offer) }}\"
  789.                    class=\"top-code-online-order\">Онлайн-заказ</a>
  790.             {% elseif offer.isTireOnlineOrderAllowedOnSite() %}
  791.                 <a href=\"/online-zapis/{{ offer.getID() }}\" class=\"top-code-online-order\">Онлайн-запись</a>
  792.             {% endif %}
  793.             {% if offer.isInFreeCodesCategory() %}
  794.                 <div class=\"top-code\" data-toggle=\"tooltip\" data-placement=\"top\"
  795.                      data-original-title='Код скидки предоставляется сайтом бесплатно'>Код 0 руб.
  796.                 </div>
  797.             {% endif %}
  798.             {% if offer.getDeliveryTimeTeaser() %}
  799.                 <div class=\"time-delivery d-flex justify-content-center align-items-center\">
  800.                     <img width=\"22\" height=\"17\" class=\"mr-1\" src=\"/images/icon_avto.svg\"/>
  801.                     <span class=\"color-white\">{{ offer.getDeliveryTimeTeaser() }} мин</span>
  802.                 </div>
  803.             {% endif %}
  804.         </div>
  805.         {% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().getDeliveryWorkingTime() is not null %}
  806.             {% set workingDeliveryTime = (offer.getOnlineOrderSettings().getDeliveryWorkingTime())|json_decode()[\"now\"|date(\"w\")] %}
  807.             {% set startTime = workingDeliveryTime.startTime|date('H:i') %}
  808.             {% set endTime = workingDeliveryTime.endTime|date('H:i') %}
  809.             {% set dayOff = workingDeliveryTime.dayOff %}
  810.             {% set nowTime = \"now\"|date(\"H:i\") %}
  811.             {% if nowTime >= startTime and nowTime <= endTime and not dayOff %}
  812.                 <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка до {{ workingDeliveryTime.endTime }}</p>
  813.             {% elseif nowTime < startTime and startTime != endTime and not dayOff %}
  814.                 <p class=\"teaser-working-time-delivery closed-delivery d-none\">Закрыто. Доставка с {{ workingDeliveryTime.startTime }}</p>
  815.             {% elseif startTime == endTime and not dayOff %}
  816.                 <p class=\"teaser-working-time-delivery open-delivery d-none\">Доставка круглосуточно</p>
  817.             {% elseif dayOff %}
  818.                 <p class=\"teaser-working-time-delivery closed-delivery d-none\">Предзаказ</p>
  819.             {% endif %}
  820.         {% endif %}
  821.     </div>""Slivki/offers/teaser.html.twig""/mnt/data/virtwww/slivki/templates/Slivki/offers/teaser.html.twig");
  822.     }
  823. }