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

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