var/cache/dev/twig/a5/a59d23bee839273dd6e9307423ffb39eadb728eabbadbe11fa3009072acd5daf.php line 51

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/mobile/sale/details.html.twig */
  14. class __TwigTemplate_adba060eecd8479236cbd14c75f821102ae21e2138ae1eb865a42e8f5c7f2db6 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->blocks = [
  23.             'styles' => [$this'block_styles'],
  24.             'content' => [$this'block_content'],
  25.             'popup' => [$this'block_popup'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "Slivki/mobile/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/sale/details.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/sale/details.html.twig"));
  41.         $this->parent $this->loadTemplate("Slivki/mobile/base.html.twig""Slivki/mobile/sale/details.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_styles($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  56.         // line 4
  57.         echo "    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
  58.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\" />
  59.     ";
  60.         // line 6
  61.         $this->displayParentBlock("styles"$context$blocks);
  62.         echo "
  63. ";
  64.         
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.     }
  69.     // line 9
  70.     public function block_content($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  77.         // line 10
  78.         echo "    ";
  79.         if (((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'10$this->source); })()) && (=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion"$context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.'10$this->source); })()), "getDescriptionBackgroundUrl", [], "method"falsefalsefalse10), "")))) {
  80.             // line 11
  81.             echo "        ";
  82.             $this->loadTemplate("Slivki/mobile/breadcrumbs.html.twig""Slivki/mobile/sale/details.html.twig"11)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'11$this->source); })())]));
  83.             // line 12
  84.             echo "    ";
  85.         }
  86.         // line 13
  87.         echo "    <div id=\"saleDetails\" class=\"p-2\">
  88.         <input type=\"hidden\" id=\"entityID\" value=\"";
  89.         // line 14
  90.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'14$this->source); })()), "getID", [], "method"falsefalsefalse14), "html"nulltrue);
  91.         echo "\">
  92.         <input type=\"hidden\" id=\"saleVersionID\" value=\"";
  93.         // line 15
  94.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion"$context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.'15$this->source); })()), "getID", [], "method"falsefalsefalse15), "html"nulltrue);
  95.         echo "\">
  96.         ";
  97.         // line 16
  98.         if (twig_get_attribute($this->env$this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion"$context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.'16$this->source); })()), "getDescriptionTitleBackgroundUrl", [], "method"falsefalsefalse16)) {
  99.             // line 17
  100.             echo "            <div id=\"saleTitleBlock\" class=\"image-with-share-btn\" data-pixel=";
  101.             echo (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'17$this->source); })()), "getID", [], "method"falsefalsefalse17), twig_constant("Slivki\\Entity\\Offer::BETERA_SALE_NEWS_ID")))) ? ("https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464044&evt_t=render&ad_type=banner&rnd=%system.random%") : (""));
  102.             echo ">
  103.                 <img src=\"";
  104.             // line 18
  105.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["saleVersion"]) || array_key_exists("saleVersion"$context) ? $context["saleVersion"] : (function () { throw new RuntimeError('Variable "saleVersion" does not exist.'18$this->source); })()), "getDescriptionTitleBackgroundUrl", [], "method"falsefalsefalse18), "html"nulltrue);
  106.             echo "\" />
  107.                 <h1>
  108.                     ";
  109.             // line 20
  110.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'20$this->source); })()), "getID", [], "method"falsefalsefalse20), 287031))) {
  111.                 // line 21
  112.                 echo "                        Стань агентом банка! <br> Рекомендуй другу карточку <nobr>«1-2-3»</nobr> и оба получите по <nobr>5 рублей!</nobr>
  113.                     ";
  114.             } else {
  115.                 // line 23
  116.                 echo "                        ";
  117.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'23$this->source); })()), "getTitle", [], "method"falsefalsefalse23), "html"nulltrue);
  118.                 echo "
  119.                     ";
  120.             }
  121.             // line 25
  122.             echo "                </h1>
  123.                 <a href=\"/am-fotogid\">Фотогиды</a>
  124.                 <div class=\"slivki-share-block-open\"><i class=\"slivki-icon-share\"></i></div>
  125.                 <div id=\"saleTitleBlockInfo\">
  126.                     ";
  127.             // line 29
  128.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'29$this->source); })()), "getSince", [], "method"falsefalsefalse29), "d.m.Y"), "html"nulltrue);
  129.             echo "
  130.                     <i class=\"slivki-icon-eye\"></i>";
  131.             // line 30
  132.             echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount"$context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.'30$this->source); })()), "html"nulltrue);
  133.             echo "
  134.                     ";
  135.             // line 31
  136.             if ((=== twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'31$this->source); })()), 5))) {
  137.                 // line 32
  138.                 echo "                        <i class=\"slivki-icon-comment-empty\"></i>";
  139.                 echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'32$this->source); })()), "html"nulltrue);
  140.                 echo "
  141.                     ";
  142.             }
  143.             // line 34
  144.             echo "                </div>
  145.             </div>
  146.         ";
  147.         } else {
  148.             // line 37
  149.             echo "            <div class=\"text-muted text-center\">
  150.                 ";
  151.             // line 38
  152.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'38$this->source); })()), "getSince", [], "method"falsefalsefalse38), "d.m.Y"), "html"nulltrue);
  153.             echo "
  154.                 <i class=\"slivki-icon-eye\"></i>";
  155.             // line 39
  156.             echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount"$context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.'39$this->source); })()), "html"nulltrue);
  157.             echo "
  158.                 ";
  159.             // line 40
  160.             if ((=== twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'40$this->source); })()), 5))) {
  161.                 // line 41
  162.                 echo "                    <i class=\"slivki-icon-comment-empty\"></i>";
  163.                 echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'41$this->source); })()), "html"nulltrue);
  164.                 echo "
  165.                 ";
  166.             }
  167.             // line 43
  168.             echo "                ";
  169.             $context["ratingWithCount"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getEntityRatingWithCount(twig_constant("Slivki\\Entity\\Category::SALE_CATEGORY_ID"), twig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'43$this->source); })()), "getID", [], "method"falsefalsefalse43));
  170.             // line 44
  171.             echo "                ";
  172.             $context["ratingPercentage"] = ((twig_get_attribute($this->env$this->source, (isset($context["ratingWithCount"]) || array_key_exists("ratingWithCount"$context) ? $context["ratingWithCount"] : (function () { throw new RuntimeError('Variable "ratingWithCount" does not exist.'44$this->source); })()), "rating", [], "any"falsefalsefalse44) * 100) / 5);
  173.             // line 45
  174.             echo "                <div class=\"star-ratings-css align-self-center\">
  175.                     <div class=\"star-ratings-css-top\" style=\"width: ";
  176.             // line 46
  177.             echo twig_escape_filter($this->env, (isset($context["ratingPercentage"]) || array_key_exists("ratingPercentage"$context) ? $context["ratingPercentage"] : (function () { throw new RuntimeError('Variable "ratingPercentage" does not exist.'46$this->source); })()), "html"nulltrue);
  178.             echo "%\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  179.                     <div class=\"star-ratings-css-bottom\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  180.                 </div>
  181.                 <div class=\"d-inline-block align-self-center\">(";
  182.             // line 49
  183.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ratingWithCount"]) || array_key_exists("ratingWithCount"$context) ? $context["ratingWithCount"] : (function () { throw new RuntimeError('Variable "ratingWithCount" does not exist.'49$this->source); })()), "amount", [], "any"falsefalsefalse49), "html"nulltrue);
  184.             echo ")</div>
  185.             </div>
  186.         ";
  187.         }
  188.         // line 52
  189.         echo "        ";
  190.         echo (isset($context["descriptions"]) || array_key_exists("descriptions"$context) ? $context["descriptions"] : (function () { throw new RuntimeError('Variable "descriptions" does not exist.'52$this->source); })());
  191.         echo "
  192.         ";
  193.         // line 54
  194.         $context["gazurl"] = twig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'54$this->source); })()), "getGszurl", [], "method"falsefalsefalse54);
  195.         // line 55
  196.         echo "        ";
  197.         if ( !(null === (isset($context["gazurl"]) || array_key_exists("gazurl"$context) ? $context["gazurl"] : (function () { throw new RuntimeError('Variable "gazurl" does not exist.'55$this->source); })()))) {
  198.             // line 56
  199.             echo "            <p><b>Общереспубликанский банк вакансий: </b> <a href=\"";
  200.             echo twig_escape_filter($this->env, (isset($context["gazurl"]) || array_key_exists("gazurl"$context) ? $context["gazurl"] : (function () { throw new RuntimeError('Variable "gazurl" does not exist.'56$this->source); })()), "html"nulltrue);
  201.             echo "\" rel=\"nofollow\">";
  202.             echo twig_escape_filter($this->env, (isset($context["gazurl"]) || array_key_exists("gazurl"$context) ? $context["gazurl"] : (function () { throw new RuntimeError('Variable "gazurl" does not exist.'56$this->source); })()), "html"nulltrue);
  203.             echo "</a></p>
  204.         ";
  205.         }
  206.         // line 58
  207.         echo "
  208.         ";
  209.         // line 59
  210.         if (twig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'59$this->source); })()), "isShowMap", [], "method"falsefalsefalse59)) {
  211.             // line 60
  212.             echo "            <div id=\"saleGeoLocationData\" data-json=\"";
  213.             echo twig_escape_filter($this->env, (isset($context["saleGeoLocationData"]) || array_key_exists("saleGeoLocationData"$context) ? $context["saleGeoLocationData"] : (function () { throw new RuntimeError('Variable "saleGeoLocationData" does not exist.'60$this->source); })()), "html"nulltrue);
  214.             echo "\"></div>
  215.             <div id=\"saleDetailsMapWrapper\" class=\"category-map-wrapper\">
  216.                 <div id=\"saleDetailsMap\" class=\"category-map\"></div>
  217.                 <div id=\"zoomIn\"></div>
  218.                 <div id=\"zoomOut\"></div>
  219.                 <a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
  220.                 <a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
  221.                 <a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
  222.             </div>
  223.         ";
  224.         }
  225.         // line 70
  226.         echo "        <div class=\"text-muted\">
  227.             ";
  228.         // line 71
  229.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'71$this->source); })()), "getSince", [], "method"falsefalsefalse71), "d.m.Y"), "html"nulltrue);
  230.         echo " <i class=\"slivki-icon-eye\"></i>";
  231.         echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount"$context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.'71$this->source); })()), "html"nulltrue);
  232.         echo " (";
  233.         echo twig_escape_filter($this->env, (isset($context["dayVisitCount"]) || array_key_exists("dayVisitCount"$context) ? $context["dayVisitCount"] : (function () { throw new RuntimeError('Variable "dayVisitCount" does not exist.'71$this->source); })()), "html"nulltrue);
  234.         echo " за сутки)
  235.         </div>
  236.         ";
  237.         // line 73
  238.         $this->loadTemplate("Slivki/mobile/sale/vote_entity_block.html.twig""Slivki/mobile/sale/details.html.twig"73)->display(twig_array_merge($context, ["pleaseVoteText" => "Оцените, пожалуйста, эту статью:""additionalClass" => ""]));
  239.         // line 75
  240.         echo "        ";
  241.         if ((=== twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'75$this->source); })()), 0))) {
  242.             // line 76
  243.             echo "        <a id=\"showSaleCommentsButton\" href=\"#commentsBlock\" data-animate-time=\"1500\"
  244.            class=\"smooth-scroll btn btn-block btn-success bg-slivki text-dark border-0 mt-2\">Отзывы (";
  245.             // line 77
  246.             echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'77$this->source); })()), "html"nulltrue);
  247.             echo ")</a>
  248.         ";
  249.         } else {
  250.             // line 79
  251.             echo "            <a id=\"showSaleCommentsButton\" href=\"/ostavit-otziv/";
  252.             echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\Comment::TYPE_SALE_COMMENT"), "html"nulltrue);
  253.             echo "/";
  254.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'79$this->source); })()), "getID", [], "method"falsefalsefalse79), "html"nulltrue);
  255.             echo "\"
  256.                class=\"btn btn-block btn-success bg-slivki text-dark border-0 mt-2 color-white\">Добавить отзыв</a>
  257.         ";
  258.         }
  259.         // line 82
  260.         echo "        ";
  261.         if (( !twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'82$this->source); })()), "user", [], "any"falsefalsefalse82) ||  !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'82$this->source); })()), "user", [], "any"falsefalsefalse82), "getAcceptNewsletter", [], "method"falsefalsefalse82))) {
  262.             // line 83
  263.             echo "            <a id=\"subscribeBtn\" href=\"";
  264.             echo ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'83$this->source); })()), "user", [], "any"falsefalsefalse83)) ? ("#") : ("/subscribe/mobile"));
  265.             echo "\" data-email=\"";
  266.             ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'83$this->source); })()), "user", [], "any"falsefalsefalse83)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'83$this->source); })()), "user", [], "any"falsefalsefalse83), "getEmail", [], "method"falsefalsefalse83), "html"nulltrue))) : (print ("")));
  267.             echo "\"
  268.                class=\"btn btn-dark btn-block mt-2 px-1\"><img class=\"fixed-size\" src=\"/images/symbol_of_wealth.png\">
  269.                 Подписаться на рассылку и стать богаче!</a>
  270.             <div id=\"subscribeMessage\" class=\"mt-2 text-center\"></div>
  271.         ";
  272.         }
  273.         // line 88
  274.         echo "
  275.         ";
  276.         // line 89
  277.         if ((isset($context["director"]) || array_key_exists("director"$context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.'89$this->source); })())) {
  278.             // line 90
  279.             echo "            <p class=\"text-muted mt-2\">";
  280.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["director"]) || array_key_exists("director"$context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.'90$this->source); })()), "getLegalEntity", [], "method"falsefalsefalse90), "html"nulltrue);
  281.             echo " УНП: ";
  282.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["director"]) || array_key_exists("director"$context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.'90$this->source); })()), "getTaxID", [], "method"falsefalsefalse90), "html"nulltrue);
  283.             echo "</p>
  284.         ";
  285.         }
  286.         // line 92
  287.         echo "        <div id=\"readabilityCheckpoint\"></div>
  288.         <div class=\"mt-2\">
  289.             <a class=\"text-dark\" href=\"";
  290.         // line 94
  291.         echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'94$this->source); })()), "html"nulltrue);
  292.         echo "\">Главная</a>
  293.             ";
  294.         // line 95
  295.         $context['_parent'] = $context;
  296.         $context['_seq'] = twig_ensure_traversable((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'95$this->source); })()));
  297.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  298.             // line 96
  299.             echo "                <i class=\"slivki-icon-angle-right\"></i>&nbsp;<a class=\"text-dark\" href=\"";
  300.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryURL($context["category"]), "html"nulltrue);
  301.             echo "\">";
  302.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "getName", [], "method"falsefalsefalse96), "html"nulltrue);
  303.             echo "</a>
  304.             ";
  305.         }
  306.         $_parent $context['_parent'];
  307.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  308.         $context array_intersect_key($context$_parent) + $_parent;
  309.         // line 98
  310.         echo "            <i class=\"slivki-icon-angle-right\"></i> ";
  311.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sale"]) || array_key_exists("sale"$context) ? $context["sale"] : (function () { throw new RuntimeError('Variable "sale" does not exist.'98$this->source); })()), "getTitle", [], "method"falsefalsefalse98), "html"nulltrue);
  312.         echo "
  313.         </div>
  314.     </div>
  315.     <div class=\"row m-2 no-gutters\">
  316.         ";
  317.         // line 103
  318.         $this->loadTemplate("Slivki/mobile/sale/related_sales.html.twig""Slivki/mobile/sale/details.html.twig"103)->display(twig_array_merge($context, ["title" => "Еще по теме""saleList" => twig_last($this->env,         // line 104
  319. (isset($context["relatedSales"]) || array_key_exists("relatedSales"$context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.'104$this->source); })()))]));
  320.         // line 105
  321.         echo "        ";
  322.         $this->loadTemplate("Slivki/mobile/sale/related_sales.html.twig""Slivki/mobile/sale/details.html.twig"105)->display(twig_array_merge($context, ["title" => "Популярные""saleList" => twig_get_attribute($this->env$this->source,         // line 106
  323. (isset($context["relatedSales"]) || array_key_exists("relatedSales"$context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.'106$this->source); })()), twig_constant("Slivki\\Repository\\SaleRepository::POPULAR_SALE_CATEGORY_ID"), [], "array"falsefalsefalse106)]));
  324.         // line 107
  325.         echo "        ";
  326.         $this->loadTemplate("Slivki/mobile/sale/related_sales.html.twig""Slivki/mobile/sale/details.html.twig"107)->display(twig_array_merge($context, ["title" => "Смотрите также""saleList" => twig_get_attribute($this->env$this->source,         // line 108
  327. (isset($context["relatedSales"]) || array_key_exists("relatedSales"$context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.'108$this->source); })()), twig_constant("Slivki\\Entity\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID"), [], "array"falsefalsefalse108)]));
  328.         // line 109
  329.         echo "    </div>
  330.     <div id=\"commentsBlock\" class=\"m-2 d-none\"></div>
  331. ";
  332.         
  333.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  334.         
  335.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  336.     }
  337.     // line 114
  338.     public function block_popup($context, array $blocks = [])
  339.     {
  340.         $macros $this->macros;
  341.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  342.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  343.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  344.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  345.         // line 115
  346.         echo "    ";
  347.         $this->displayParentBlock("popup"$context$blocks);
  348.         echo "
  349.     ";
  350.         // line 116
  351.         $this->loadTemplate("Slivki/mobile/share_block.html.twig""Slivki/mobile/sale/details.html.twig"116)->display($context);
  352.         
  353.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  354.         
  355.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  356.     }
  357.     // line 119
  358.     public function block_javascripts($context, array $blocks = [])
  359.     {
  360.         $macros $this->macros;
  361.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  362.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  363.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  364.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  365.         // line 120
  366.         echo "    <script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
  367.     <script src=\"https://yastatic.net/share2/share.js\"></script>
  368.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  369.     <script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
  370.     ";
  371.         // line 124
  372.         $this->displayParentBlock("javascripts"$context$blocks);
  373.         echo "
  374.     <script src=\"/mobile/js/sale.js?v=14\"></script>
  375. ";
  376.         
  377.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  378.         
  379.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  380.     }
  381.     public function getTemplateName()
  382.     {
  383.         return "Slivki/mobile/sale/details.html.twig";
  384.     }
  385.     public function isTraitable()
  386.     {
  387.         return false;
  388.     }
  389.     public function getDebugInfo()
  390.     {
  391.         return array (  404 => 124,  398 => 120,  388 => 119,  378 => 116,  373 => 115,  363 => 114,  350 => 109,  348 => 108,  346 => 107,  344 => 106,  342 => 105,  340 => 104,  339 => 103,  330 => 98,  319 => 96,  315 => 95,  311 => 94,  307 => 92,  299 => 90,  297 => 89,  294 => 88,  283 => 83,  280 => 82,  271 => 79,  266 => 77,  263 => 76,  260 => 75,  258 => 73,  249 => 71,  246 => 70,  232 => 60,  230 => 59,  227 => 58,  219 => 56,  216 => 55,  214 => 54,  208 => 52,  202 => 49,  196 => 46,  193 => 45,  190 => 44,  187 => 43,  181 => 41,  179 => 40,  175 => 39,  171 => 38,  168 => 37,  163 => 34,  157 => 32,  155 => 31,  151 => 30,  147 => 29,  141 => 25,  135 => 23,  131 => 21,  129 => 20,  124 => 18,  119 => 17,  117 => 16,  113 => 15,  109 => 14,  106 => 13,  103 => 12,  100 => 11,  97 => 10,  87 => 9,  75 => 6,  71 => 4,  61 => 3,  38 => 1,);
  392.     }
  393.     public function getSourceContext()
  394.     {
  395.         return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
  396. {% block styles %}
  397.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
  398.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\" />
  399.     {{ parent() }}
  400. {% endblock %}
  401. {% block content %}
  402.     {% if parentCategoryList and saleVersion.getDescriptionBackgroundUrl() == '' %}
  403.         {% include 'Slivki/mobile/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList } only %}
  404.     {% endif %}
  405.     <div id=\"saleDetails\" class=\"p-2\">
  406.         <input type=\"hidden\" id=\"entityID\" value=\"{{ sale.getID() }}\">
  407.         <input type=\"hidden\" id=\"saleVersionID\" value=\"{{ saleVersion.getID() }}\">
  408.         {% if saleVersion.getDescriptionTitleBackgroundUrl() %}
  409.             <div id=\"saleTitleBlock\" class=\"image-with-share-btn\" data-pixel={{ sale.getID() == constant('Slivki\\\\Entity\\\\Offer::BETERA_SALE_NEWS_ID') ? 'https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464044&evt_t=render&ad_type=banner&rnd=%system.random%' }}>
  410.                 <img src=\"{{ saleVersion.getDescriptionTitleBackgroundUrl() }}\" />
  411.                 <h1>
  412.                     {% if sale.getID() == 287031  %}
  413.                         Стань агентом банка! <br> Рекомендуй другу карточку <nobr>«1-2-3»</nobr> и оба получите по <nobr>5 рублей!</nobr>
  414.                     {% else %}
  415.                         {{ sale.getTitle() }}
  416.                     {% endif %}
  417.                 </h1>
  418.                 <a href=\"/am-fotogid\">Фотогиды</a>
  419.                 <div class=\"slivki-share-block-open\"><i class=\"slivki-icon-share\"></i></div>
  420.                 <div id=\"saleTitleBlockInfo\">
  421.                     {{ sale.getSince()|date('d.m.Y') }}
  422.                     <i class=\"slivki-icon-eye\"></i>{{ visitCount }}
  423.                     {% if commentsAmount > 5  %}
  424.                         <i class=\"slivki-icon-comment-empty\"></i>{{ commentsAmount }}
  425.                     {% endif %}
  426.                 </div>
  427.             </div>
  428.         {% else  %}
  429.             <div class=\"text-muted text-center\">
  430.                 {{ sale.getSince()|date('d.m.Y') }}
  431.                 <i class=\"slivki-icon-eye\"></i>{{ visitCount }}
  432.                 {% if commentsAmount > 5  %}
  433.                     <i class=\"slivki-icon-comment-empty\"></i>{{ commentsAmount }}
  434.                 {% endif %}
  435.                 {% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::SALE_CATEGORY_ID'), sale.getID()) %}
  436.                 {% set ratingPercentage =  ratingWithCount.rating * 100 / 5 %}
  437.                 <div class=\"star-ratings-css align-self-center\">
  438.                     <div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  439.                     <div class=\"star-ratings-css-bottom\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  440.                 </div>
  441.                 <div class=\"d-inline-block align-self-center\">({{ ratingWithCount.amount }})</div>
  442.             </div>
  443.         {% endif %}
  444.         {{ descriptions | raw }}
  445.         {% set gazurl = sale.getGszurl() %}
  446.         {% if gazurl is not null %}
  447.             <p><b>Общереспубликанский банк вакансий: </b> <a href=\"{{ gazurl }}\" rel=\"nofollow\">{{ gazurl }}</a></p>
  448.         {% endif %}
  449.         {% if sale.isShowMap() %}
  450.             <div id=\"saleGeoLocationData\" data-json=\"{{ saleGeoLocationData }}\"></div>
  451.             <div id=\"saleDetailsMapWrapper\" class=\"category-map-wrapper\">
  452.                 <div id=\"saleDetailsMap\" class=\"category-map\"></div>
  453.                 <div id=\"zoomIn\"></div>
  454.                 <div id=\"zoomOut\"></div>
  455.                 <a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
  456.                 <a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
  457.                 <a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
  458.             </div>
  459.         {% endif %}
  460.         <div class=\"text-muted\">
  461.             {{ sale.getSince()|date('d.m.Y') }} <i class=\"slivki-icon-eye\"></i>{{ visitCount }} ({{ dayVisitCount }} за сутки)
  462.         </div>
  463.         {% include 'Slivki/mobile/sale/vote_entity_block.html.twig'
  464.             with {'pleaseVoteText': 'Оцените, пожалуйста, эту статью:', 'additionalClass': ''} %}
  465.         {% if commentsAmount > 0 %}
  466.         <a id=\"showSaleCommentsButton\" href=\"#commentsBlock\" data-animate-time=\"1500\"
  467.            class=\"smooth-scroll btn btn-block btn-success bg-slivki text-dark border-0 mt-2\">Отзывы ({{ commentsAmount }})</a>
  468.         {% else %}
  469.             <a id=\"showSaleCommentsButton\" href=\"/ostavit-otziv/{{ constant('Slivki\\\\Entity\\\\Comment::TYPE_SALE_COMMENT') }}/{{ sale.getID() }}\"
  470.                class=\"btn btn-block btn-success bg-slivki text-dark border-0 mt-2 color-white\">Добавить отзыв</a>
  471.         {% endif %}
  472.         {% if not app.user or not app.user.getAcceptNewsletter() %}
  473.             <a id=\"subscribeBtn\" href=\"{{ app.user ? '#' : '/subscribe/mobile' }}\" data-email=\"{{ app.user ? app.user.getEmail() : '' }}\"
  474.                class=\"btn btn-dark btn-block mt-2 px-1\"><img class=\"fixed-size\" src=\"/images/symbol_of_wealth.png\">
  475.                 Подписаться на рассылку и стать богаче!</a>
  476.             <div id=\"subscribeMessage\" class=\"mt-2 text-center\"></div>
  477.         {% endif %}
  478.         {% if director %}
  479.             <p class=\"text-muted mt-2\">{{ director.getLegalEntity()}} УНП: {{ director.getTaxID() }}</p>
  480.         {% endif %}
  481.         <div id=\"readabilityCheckpoint\"></div>
  482.         <div class=\"mt-2\">
  483.             <a class=\"text-dark\" href=\"{{ base_url }}\">Главная</a>
  484.             {% for category in parentCategoryList %}
  485.                 <i class=\"slivki-icon-angle-right\"></i>&nbsp;<a class=\"text-dark\" href=\"{{ getCategoryURL(category) }}\">{{ category.getName() }}</a>
  486.             {% endfor %}
  487.             <i class=\"slivki-icon-angle-right\"></i> {{ sale.getTitle() }}
  488.         </div>
  489.     </div>
  490.     <div class=\"row m-2 no-gutters\">
  491.         {% include 'Slivki/mobile/sale/related_sales.html.twig'
  492.             with {'title': 'Еще по теме', 'saleList': relatedSales|last} %}
  493.         {% include 'Slivki/mobile/sale/related_sales.html.twig'
  494.             with {'title': 'Популярные', 'saleList': relatedSales[constant('Slivki\\\\Repository\\\\SaleRepository::POPULAR_SALE_CATEGORY_ID')] } %}
  495.         {% include 'Slivki/mobile/sale/related_sales.html.twig'
  496.             with {'title': 'Смотрите также', 'saleList': relatedSales[constant('Slivki\\\\Entity\\\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID')]} %}
  497.     </div>
  498.     <div id=\"commentsBlock\" class=\"m-2 d-none\"></div>
  499. {% endblock %}
  500. {% block popup %}
  501.     {{ parent() }}
  502.     {% include 'Slivki/mobile/share_block.html.twig' %}
  503. {% endblock %}
  504. {% block javascripts %}
  505.     <script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
  506.     <script src=\"https://yastatic.net/share2/share.js\"></script>
  507.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  508.     <script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
  509.     {{ parent() }}
  510.     <script src=\"/mobile/js/sale.js?v=14\"></script>
  511. {% endblock %}""Slivki/mobile/sale/details.html.twig""/mnt/data/virtwww/test/templates/Slivki/mobile/sale/details.html.twig");
  512.     }
  513. }