var/cache/dev/twig/de/deb33418db33e7e63755b52689cdef972f459d07365d317252461d31a1600303.php line 58

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/sale/sale.html.twig */
  14. class __TwigTemplate_1c574203c1dbfb019c2520cb96ea28a0fb5030eb802a1e2013a76271e5d89895 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'header' => [$this'block_header'],
  25.             'ogimage' => [$this'block_ogimage'],
  26.             'left_sidebar' => [$this'block_left_sidebar'],
  27.             'mainColumnClass' => [$this'block_mainColumnClass'],
  28.             'mainColumnParameters' => [$this'block_mainColumnParameters'],
  29.             'main_content' => [$this'block_main_content'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.             'popups' => [$this'block_popups'],
  32.             'assetsBottom' => [$this'block_assetsBottom'],
  33.             'bottomContentBlock' => [$this'block_bottomContentBlock'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context)
  37.     {
  38.         // line 1
  39.         return "base.html.twig";
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = [])
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/sale.html.twig"));
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/sale.html.twig"));
  48.         $this->parent $this->loadTemplate("base.html.twig""Slivki/sale/sale.html.twig"1);
  49.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.     }
  55.     // line 3
  56.     public function block_stylesheets($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  63.         // line 4
  64.         echo "    ";
  65.         $this->displayParentBlock("stylesheets"$context$blocks);
  66.         echo "
  67.     <style type=\"text/css\">
  68.         #sidebarShowMore{display:none;}
  69.     </style>
  70.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
  71. ";
  72.         
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.     }
  77.     // line 11
  78.     public function block_header($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  85.         // line 12
  86.         echo "    ";
  87.         if ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  88.             // line 13
  89.             echo "        ";
  90.             $this->loadTemplate("header_sales_mobile.html.twig""Slivki/sale/sale.html.twig"13)->display($context);
  91.             // line 14
  92.             echo "    ";
  93.         } else {
  94.             // line 15
  95.             echo "        ";
  96.             $this->loadTemplate("header_sales.html.twig""Slivki/sale/sale.html.twig"15)->display(twig_array_merge($context, ["withSearch" => true]));
  97.             // line 16
  98.             echo "    ";
  99.         }
  100.         
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  102.         
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  104.     }
  105.     // line 19
  106.     public function block_ogimage($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  113.         // line 20
  114.         echo "    <meta property=\"og:image\" content=\"";
  115.         echo 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.'20$this->source); })()), "request", [], "any"falsefalsefalse20), "getSchemeAndHttpHost", [], "method"falsefalsefalse20), "html"nulltrue);
  116.         echo twig_escape_filter($this->envtwig_replace_filter(twig_urlencode_filter($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(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); })()), "getIcon", [], "method"falsefalsefalse20), 338220)), ["%2F" => "/"]), "html"nulltrue);
  117.         echo "\" />
  118.     <meta property=\"og:image:width\" content=\"338\"/>
  119.     <meta property=\"og:image:height\" content=\"220\"/>
  120. ";
  121.         
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  123.         
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  125.     }
  126.     // line 25
  127.     public function block_left_sidebar($context, array $blocks = [])
  128.     {
  129.         $macros $this->macros;
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  132.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  134.         // line 26
  135.         echo "    ";
  136.         if ( !(isset($context["isFlier"]) || array_key_exists("isFlier"$context) ? $context["isFlier"] : (function () { throw new RuntimeError('Variable "isFlier" does not exist.'26$this->source); })())) {
  137.             // line 27
  138.             echo "        ";
  139.             $this->loadTemplate("left_sidebar.html.twig""Slivki/sale/sale.html.twig"27)->display($context);
  140.             // line 28
  141.             echo "    ";
  142.         }
  143.         
  144.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  145.         
  146.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  147.     }
  148.     // line 31
  149.     public function block_mainColumnClass($context, array $blocks = [])
  150.     {
  151.         $macros $this->macros;
  152.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  153.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  154.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  155.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  156.         // line 32
  157.         echo "    ";
  158.         if ((isset($context["isFlier"]) || array_key_exists("isFlier"$context) ? $context["isFlier"] : (function () { throw new RuntimeError('Variable "isFlier" does not exist.'32$this->source); })())) {
  159.             $this->displayParentBlock("mainColumnClass"$context$blocks);
  160.             echo " one-column";
  161.         } else {
  162.             $this->displayParentBlock("mainColumnClass"$context$blocks);
  163.             echo ((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.'32$this->source); })()), "getDescriptionBackgroundUrl", [], "method"falsefalsefalse32)) ? (" sale-with-background") : (""));
  164.         }
  165.         
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  167.         
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  169.     }
  170.     // line 35
  171.     public function block_mainColumnParameters($context, array $blocks = [])
  172.     {
  173.         $macros $this->macros;
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnParameters"));
  176.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnParameters"));
  178.         // line 36
  179.         echo "    ";
  180.         if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  181.             // line 37
  182.             echo "        ";
  183.             ((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.'37$this->source); })()), "getDescriptionBackgroundUrl", [], "method"falsefalsefalse37)) ? (print (twig_escape_filter($this->env, (("style=background:url(" 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.'37$this->source); })()), "getDescriptionBackgroundUrl", [], "method"falsefalsefalse37)) . ")"), "html"nulltrue))) : (print ("")));
  184.             echo "
  185.     ";
  186.         }
  187.         
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  189.         
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  191.     }
  192.     // line 41
  193.     public function block_main_content($context, array $blocks = [])
  194.     {
  195.         $macros $this->macros;
  196.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  197.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  198.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  200.         // line 42
  201.         echo "    ";
  202.         if (((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'42$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.'42$this->source); })()), "getDescriptionBackgroundUrl", [], "method"falsefalsefalse42), "")))) {
  203.             // line 43
  204.             echo "        ";
  205.             $this->loadTemplate("Slivki/breadcrumbs.html.twig""Slivki/sale/sale.html.twig"43)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'43$this->source); })())]));
  206.             // line 44
  207.             echo "    ";
  208.         }
  209.         // line 45
  210.         echo "    <div class=\"clearfix\"></div>
  211.     ";
  212.         // line 47
  213.         $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.'47$this->source); })()), "getID", [], "method"falsefalsefalse47));
  214.         // line 48
  215.         echo "    <div class=\"saleDetail\">
  216.         ";
  217.         // line 49
  218.         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.'49$this->source); })()), "getID", [], "method"falsefalsefalse49), 280659))) {
  219.             // line 50
  220.             echo "            <img height=\"1\" width=\"1\" src=\"https://mc.admetrica.ru/show?cmn_id=10141&plt_id=27346&crv_id=69064&evt_t=render&ad_type=banner&rnd=%system.random%\" style=\"display:none;\">
  221.         ";
  222.         }
  223.         // line 52
  224.         echo "        ";
  225.         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.'52$this->source); })()), "getDescriptionTitleBackgroundUrl", [], "method"falsefalsefalse52)) {
  226.             // line 53
  227.             echo "            <div id=\"saleTitleBlock\" class=\"with-share-block\">
  228.                 ";
  229.             // line 54
  230.             $this->loadTemplate("Slivki/share_block.html.twig""Slivki/sale/sale.html.twig"54)->display($context);
  231.             // line 55
  232.             echo "                <img src=\"";
  233.             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.'55$this->source); })()), "getDescriptionTitleBackgroundUrl", [], "method"falsefalsefalse55), "html"nulltrue);
  234.             echo "\" />
  235.                 <a href=\"";
  236.             // line 56
  237.             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.'56$this->source); })()), "html"nulltrue);
  238.             echo "/am-fotogid\">Фотогиды</a>
  239.                 <h1>
  240.                     ";
  241.             // line 58
  242.             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.'58$this->source); })()), "getID", [], "method"falsefalsefalse58), 287031))) {
  243.                 // line 59
  244.                 echo "                        Стань агентом банка! <br> Рекомендуй другу карточку <nobr>«1-2-3»</nobr> и оба получите по <nobr>5 рублей!</nobr>
  245.                     ";
  246.             } else {
  247.                 // line 61
  248.                 echo "                        ";
  249.                 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.'61$this->source); })()), "getTitle", [], "method"falsefalsefalse61), "html"nulltrue);
  250.                 echo "
  251.                     ";
  252.             }
  253.             // line 63
  254.             echo "                </h1>
  255.                 <div>
  256.                     ";
  257.             // line 65
  258.             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);
  259.             echo "
  260.                     <i class=\"slivki-icon-eye\"></i>";
  261.             // line 66
  262.             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.'66$this->source); })()), "html"nulltrue);
  263.             echo "
  264.                     ";
  265.             // line 67
  266.             if ((=== twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'67$this->source); })()), 5))) {
  267.                 // line 68
  268.                 echo "                        <i class=\"slivki-icon-comment-empty\"></i>";
  269.                 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.'68$this->source); })()), "html"nulltrue);
  270.                 echo "
  271.                     ";
  272.             }
  273.             // line 70
  274.             echo "                </div>
  275.             </div>
  276.         ";
  277.         } else {
  278.             // line 73
  279.             echo "            ";
  280.             $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.'73$this->source); })()), "rating", [], "any"falsefalsefalse73) * 100) / 5);
  281.             // line 74
  282.             echo "            <div class=\"float-right text-muted\" style=\"margin-left: 5px\">
  283.                 <div class=\"star-ratings-css\">
  284.                     <div class=\"star-ratings-css-top\" style=\"width: ";
  285.             // line 76
  286.             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.'76$this->source); })()), "html"nulltrue);
  287.             echo "%\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  288.                     <div class=\"star-ratings-css-bottom\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  289.                 </div>
  290.                 (";
  291.             // line 79
  292.             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.'79$this->source); })()), "amount", [], "any"falsefalsefalse79), "html"nulltrue);
  293.             echo ")
  294.             </div>
  295.             <div class=\"text-muted float-right\">
  296.                 ";
  297.             // line 82
  298.             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.'82$this->source); })()), "getSince", [], "method"falsefalsefalse82), "d.m.Y"), "html"nulltrue);
  299.             echo "
  300.                 <i class=\"slivki-icon-eye\"></i>";
  301.             // line 83
  302.             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.'83$this->source); })()), "html"nulltrue);
  303.             echo "
  304.                 ";
  305.             // line 84
  306.             if ((=== twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'84$this->source); })()), 5))) {
  307.                 // line 85
  308.                 echo "                    <i class=\"slivki-icon-comment-empty\"></i>";
  309.                 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.'85$this->source); })()), "html"nulltrue);
  310.                 echo "
  311.                 ";
  312.             }
  313.             // line 87
  314.             echo "            </div>
  315.             <div class=\"clear\"></div>
  316.         ";
  317.         }
  318.         // line 90
  319.         echo "
  320.         ";
  321.         // line 91
  322.         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.'91$this->source); })()), "getFancyDescription", [], "method"falsefalsefalse91) && (!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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.'91$this->source); })()), "getFancyDescription", [], "method"falsefalsefalse91), "getDescription", [], "method"falsefalsefalse91), "")))) {
  323.             // line 92
  324.             echo "            <div id=\"saleFancyDescriptionBlock\">
  325.                 ";
  326.             // line 93
  327.             echo twig_get_attribute($this->env$this->sourcetwig_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.'93$this->source); })()), "getFancyDescription", [], "method"falsefalsefalse93), "getDescription", [], "method"falsefalsefalse93);
  328.             echo "
  329.             </div>
  330.             <div id=\"saleCurledPage\"><span>&nbsp;</span><i></i></div>
  331.         ";
  332.         }
  333.         // line 97
  334.         echo "
  335.         <div class=\"saleBody\" data-oid=\"";
  336.         // line 98
  337.         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); })()), "getID", [], "method"falsefalsefalse98), "html"nulltrue);
  338.         echo "\">
  339.             ";
  340.         // line 99
  341.         if ((!== 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.'99$this->source); })()), "getDescriptionBackgroundUrl", [], "method"falsefalsefalse99), ""))) {
  342.             // line 100
  343.             echo "                ";
  344.             $this->loadTemplate("Slivki/breadcrumbs.html.twig""Slivki/sale/sale.html.twig"100)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'100$this->source); })())]));
  345.             // line 101
  346.             echo "                <div class=\"clear\"></div>
  347.             ";
  348.         }
  349.         // line 103
  350.         echo "            ";
  351.         echo (isset($context["descriptions"]) || array_key_exists("descriptions"$context) ? $context["descriptions"] : (function () { throw new RuntimeError('Variable "descriptions" does not exist.'103$this->source); })());
  352.         echo "
  353.             ";
  354.         // line 104
  355.         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.'104$this->source); })()), "isShowMap", [], "method"falsefalsefalse104)) {
  356.             // line 105
  357.             echo "                <div id=\"saleGeoLocationData\" data-json=\"";
  358.             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.'105$this->source); })()), "html"nulltrue);
  359.             echo "\"></div>
  360.                 <div id=\"saleDetailsMapWrapper\" class=\"category-map-wrapper\">
  361.                     <div id=\"saleDetailsMap\" class=\"category-map\"></div>
  362.                     <div id=\"zoomIn\"></div>
  363.                     <div id=\"zoomOut\"></div>
  364.                     <a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать местоположение</a>
  365.                     <a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
  366.                     <a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
  367.                 </div>
  368.             ";
  369.         }
  370.         // line 115
  371.         echo "            <div class=\"saleFooterDetail\">
  372.                 ";
  373.         // line 116
  374.         $this->loadTemplate("Slivki/share_stat.html.twig""Slivki/sale/sale.html.twig"116)->display($context);
  375.         // line 117
  376.         echo "                <div class=\"date\">
  377.                     ";
  378.         // line 118
  379.         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.'118$this->source); })()), "getSince", [], "method"falsefalsefalse118), "d.m.Y"), "html"nulltrue);
  380.         echo "
  381.                     <span data-toggle=\"tooltip\" data-placement=\"top\" data-original-title='Просмотров за ";
  382.         // line 119
  383.         echo twig_escape_filter($this->env, (isset($context["daysFromStart"]) || array_key_exists("daysFromStart"$context) ? $context["daysFromStart"] : (function () { throw new RuntimeError('Variable "daysFromStart" does not exist.'119$this->source); })()), "html"nulltrue);
  384.         echo " ";
  385.         echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> "день"=> "дня"=> "дней"], (isset($context["daysFromStart"]) || array_key_exists("daysFromStart"$context) ? $context["daysFromStart"] : (function () { throw new RuntimeError('Variable "daysFromStart" does not exist.'119$this->source); })())), "html"nulltrue);
  386.         echo "'>
  387.                         <i class=\"slivki-icon-eye\"></i>";
  388.         // line 120
  389.         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.'120$this->source); })()), "html"nulltrue);
  390.         echo " (";
  391.         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.'120$this->source); })()), "html"nulltrue);
  392.         echo " за сутки)
  393.                     </span>
  394.                 </div>
  395.                 ";
  396.         // line 124
  397.         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.'124$this->source); })()), "user", [], "any"falsefalsefalse124)) {
  398.             // line 125
  399.             echo "                    <div class=\"vote-entity-block\">
  400.                         ";
  401.             // line 126
  402.             if ((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'126$this->source); })()), 0))) {
  403.                 // line 127
  404.                 echo "                            <div class=\"vote-pls\">Оцените, пожалуйста, эту статью:</div>
  405.                         ";
  406.             }
  407.             // line 129
  408.             echo "                        <div class=\"your-vote ";
  409.             echo (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'129$this->source); })()), 0))) ? (" hidden") : (""));
  410.             echo "\">Ваша оценка: <span id=\"yourVote\">";
  411.             echo twig_escape_filter($this->env, (isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'129$this->source); })()), "html"nulltrue);
  412.             echo "</span></div>
  413.                         ";
  414.             // line 130
  415.             $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.'130$this->source); })()), "getID", [], "method"falsefalsefalse130));
  416.             // line 131
  417.             echo "                        ";
  418.             $context["ratingPercentage"] = (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'131$this->source); })()), 0))) ? (0) : (((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.'131$this->source); })()), "rating", [], "any"falsefalsefalse131) * 100) / 5)));
  419.             // line 132
  420.             echo "                        ";
  421.             ob_start();
  422.             // line 133
  423.             echo "                            <div class=\"star-ratings-css\">
  424.                                 <div class=\"star-ratings-css-top\" style=\"width: ";
  425.             // line 134
  426.             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.'134$this->source); })()), "html"nulltrue);
  427.             echo "%\">
  428.                                     ";
  429.             // line 135
  430.             $context['_parent'] = $context;
  431.             $context['_seq'] = twig_ensure_traversable(range(15));
  432.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  433.                 // line 136
  434.                 echo "                                        <span data-id=\"";
  435.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  436.                 echo "\">★</span>
  437.                                     ";
  438.             }
  439.             $_parent $context['_parent'];
  440.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  441.             $context array_intersect_key($context$_parent) + $_parent;
  442.             // line 138
  443.             echo "                                </div>
  444.                                 <div class=\"star-ratings-css-bottom\">
  445.                                     ";
  446.             // line 140
  447.             $context['_parent'] = $context;
  448.             $context['_seq'] = twig_ensure_traversable(range(15));
  449.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  450.                 // line 141
  451.                 echo "                                        <span data-id=\"";
  452.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  453.                 echo "\">☆</span>
  454.                                     ";
  455.             }
  456.             $_parent $context['_parent'];
  457.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  458.             $context array_intersect_key($context$_parent) + $_parent;
  459.             // line 143
  460.             echo "                                </div>
  461.                             </div>
  462.                         ";
  463.             $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  464.             // line 132
  465.             echo twig_spaceless($___internal_parse_0_);
  466.             // line 146
  467.             echo "                        <span class=\"vote-avg-rating ";
  468.             echo (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'146$this->source); })()), 0))) ? (" hidden") : (""));
  469.             echo "\">(<span id=\"avgSaleRating\">";
  470.             echo twig_escape_filter($this->envtwig_number_format_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.'146$this->source); })()), "rating", [], "any"falsefalsefalse146), 1), "html"nulltrue);
  471.             echo "</span>)</span>
  472.                         <div class=\"total-votes ";
  473.             // line 147
  474.             echo (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'147$this->source); })()), 0))) ? (" hidden") : (""));
  475.             echo "\">Всего голосов: <span id=\"totalSaleVotesCnt\">";
  476.             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.'147$this->source); })()), "ratingCount", [], "any"falsefalsefalse147), "html"nulltrue);
  477.             echo "</span></div>
  478.                     </div>
  479.                 ";
  480.         }
  481.         // line 150
  482.         echo "                <div id=\"readabilityCheckpoint\"></div>
  483.                 ";
  484.         // line 152
  485.         if ((=== twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'152$this->source); })()), 0))) {
  486.             // line 153
  487.             echo "                    <a href=\"javascript:void(0)\" id=\"showSaleCommentsButton\" class=\"button\">Отзывы (";
  488.             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.'153$this->source); })()), "html"nulltrue);
  489.             echo ")</a>
  490.                 ";
  491.         } else {
  492.             // line 155
  493.             echo "                    <span class=\"addVoteLink button mb-1\" id=\"addVoteLink\" data-oid=\"";
  494.             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.'155$this->source); })()), "getID", [], "method"falsefalsefalse155), "html"nulltrue);
  495.             echo "\" data-type=\"";
  496.             echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\Comment::TYPE_SALE_COMMENT"), "html"nulltrue);
  497.             echo "\" data-action=\"comment_add\" data-toggle=\"modal\" data-target=\"";
  498.             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.'155$this->source); })()), "user", [], "any"falsefalsefalse155)) ? ("#addVoteBox") : ("#onlyRegistered"));
  499.             echo "\" >Добавить отзыв</span>
  500.                 ";
  501.         }
  502.         // line 157
  503.         echo "
  504.                 ";
  505.         // line 158
  506.         if (( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice() && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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.'158$this->source); })()), "getVersions", [], "method"falsefalsefalse158), "count", [], "method"falsefalsefalse158), 1)))) {
  507.             // line 159
  508.             echo "                    <div id=\"saleHistory\">
  509.                         <a class=\"selected\" href=\"javascript:void(0)\">";
  510.             // line 160
  511.             echo (((isset($context["isFlier"]) || array_key_exists("isFlier"$context) ? $context["isFlier"] : (function () { throw new RuntimeError('Variable "isFlier" does not exist.'160$this->source); })())) ? ("Архив листовок") : ("Архив новости"));
  512.             echo "</a>
  513.                         <span></span>
  514.                         <div id=\"saleHistoryBox\">
  515.                             <div class=\"sale-history-arrow-box sale-history-box\">
  516.                                 ";
  517.             // line 164
  518.             $context['_parent'] = $context;
  519.             $context['_seq'] = twig_ensure_traversable(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.'164$this->source); })()), "getVersions", [], "method"falsefalsefalse164));
  520.             foreach ($context['_seq'] as $context["_key"] => $context["version"]) {
  521.                 // line 165
  522.                 echo "                                    <a ";
  523.                 echo (((=== twig_compare(twig_get_attribute($this->env$this->source$context["version"], "getID", [], "method"falsefalsefalse165), 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.'165$this->source); })()), "getID", [], "method"falsefalsefalse165)))) ? ("class=active") : (""));
  524.                 echo " href=\"";
  525.                 echo 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.'165$this->source); })()), "request", [], "any"falsefalsefalse165), "pathInfo", [], "any"falsefalsefalse165), "html"nulltrue);
  526.                 echo "?version=";
  527.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["version"], "getID", [], "method"falsefalsefalse165), "html"nulltrue);
  528.                 echo "\">";
  529.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["version"], "getName", [], "method"falsefalsefalse165), "html"nulltrue);
  530.                 echo "</a>
  531.                                 ";
  532.             }
  533.             $_parent $context['_parent'];
  534.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['version'], $context['_parent'], $context['loop']);
  535.             $context array_intersect_key($context$_parent) + $_parent;
  536.             // line 167
  537.             echo "                            </div>
  538.                         </div>
  539.                     </div>
  540.                 ";
  541.         }
  542.         // line 171
  543.         echo "
  544.                 ";
  545.         // line 172
  546.         if ((isset($context["director"]) || array_key_exists("director"$context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.'172$this->source); })())) {
  547.             // line 173
  548.             echo "                    <p class=\"director-info\"><span> ";
  549.             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.'173$this->source); })()), "getLegalEntity", [], "method"falsefalsefalse173), "html"nulltrue);
  550.             echo " УНП: ";
  551.             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.'173$this->source); })()), "getTaxID", [], "method"falsefalsefalse173), "html"nulltrue);
  552.             echo " </span> </p>
  553.                 ";
  554.         }
  555.         // line 175
  556.         echo "                ";
  557.         $this->loadTemplate("Slivki/subscribe_block.html.twig""Slivki/sale/sale.html.twig"175)->display($context);
  558.         // line 176
  559.         echo "                ";
  560.         $this->loadTemplate("Slivki/breadcrumbs_footer.html.twig""Slivki/sale/sale.html.twig"176)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'176$this->source); })()), "title" => 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.'176$this->source); })()), "getTitle", [], "method"falsefalsefalse176)]));
  561.         // line 177
  562.         echo "
  563.                 <div class=\"clear\"></div>
  564.             </div>
  565.         </div>
  566.     </div>
  567.     <input id=\"stock-id\" value=\"";
  568.         // line 182
  569.         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.'182$this->source); })()), "getID", [], "method"falsefalsefalse182), "html"nulltrue);
  570.         echo "\">
  571.     <input type=\"hidden\" id=\"saleVersionID\" value=\"";
  572.         // line 183
  573.         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.'183$this->source); })()), "getID", [], "method"falsefalsefalse183), "html"nulltrue);
  574.         echo "\">
  575. ";
  576.         
  577.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  578.         
  579.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  580.     }
  581.     // line 186
  582.     public function block_javascripts($context, array $blocks = [])
  583.     {
  584.         $macros $this->macros;
  585.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  586.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  587.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  588.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  589.         // line 187
  590.         echo "    ";
  591.         $this->displayParentBlock("javascripts"$context$blocks);
  592.         echo "
  593.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  594.     <script src=\"/js/readability.js?v=4\" type=\"text/javascript\"></script>
  595.     <script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
  596.     <script type=\"text/javascript\">
  597.         \$(document).ready(function () {
  598.             \$(document).off( \"click\", \"#sidebarShowMoreWrap\");
  599.             ";
  600.         // line 194
  601.         if ((=== twig_compare((isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'194$this->source); })()), 0))) {
  602.             // line 195
  603.             echo "                \$(document).on(\"click\", \"#showSaleCommentsButton\", function() {
  604.                     if (\$('.votes').length) {
  605.                         \$('html,body').animate({scrollTop: \$(\"#saleCommentsBlock\").offset().top - 100}, 'slow');
  606.                         return false;
  607.                     }
  608.                     return false;
  609.                 });
  610.             ";
  611.         }
  612.         // line 203
  613.         echo "            \$.get(\"/get_comment_box/";
  614.         echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\Comment::TYPE_SALE_COMMENT"), "html"nulltrue);
  615.         echo "/";
  616.         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.'203$this->source); })()), "getID", [], "method"falsefalsefalse203), "html"nulltrue);
  617.         echo "\", function (data) {
  618.                 \$('#saleCommentsBlock').html(data);
  619.                 \$('#saleCommentsBlock').css('visibility', 'visible');
  620.                 initVoteBox(true);
  621.                 initTooltip();
  622.                 proceedComments(";
  623.         // line 208
  624.         ((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.'208$this->source); })()), "user", [], "any"falsefalsefalse208)) ? (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.'208$this->source); })()), "user", [], "any"falsefalsefalse208), "getID", [], "method"falsefalsefalse208), "html"nulltrue))) : (print (0)));
  625.         echo ");
  626.                 uploadPhoto('/comment/image_upload', '/comment/image_remove');
  627.             });
  628.             ";
  629.         // line 211
  630.         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.'211$this->source); })()), "user", [], "any"falsefalsefalse211)) {
  631.             // line 212
  632.             echo "            \$('.vote-entity-block .star-ratings-css span').click(function () {
  633.                 var rating = \$(this).attr('data-id');
  634.                 var starRatingBlock = \$('.vote-entity-block .star-ratings-css');
  635.                 \$('.vote-entity-block .star-ratings-css-top').css('width', rating * 20 + '%');
  636.                 \$.get('/profile/vote_sale/' + ";
  637.             // line 216
  638.             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.'216$this->source); })()), "getID", [], "any"falsefalsefalse216), "html"nulltrue);
  639.             echo " + '/' + rating, function (data) {
  640.                     \$('#yourVote').html(rating);
  641.                     \$('#avgSaleRating').html(parseFloat(data.rating).toFixed(1));
  642.                     \$('#totalSaleVotesCnt').html(data.ratingCount);
  643.                     \$('.vote-pls').remove();
  644.                     \$('.vote-avg-rating').removeClass('hidden');
  645.                     \$('.total-votes').removeClass('hidden');
  646.                     \$('.your-vote').removeClass('hidden');
  647.                 });
  648.                 return false;
  649.             });
  650.             ";
  651.         }
  652.         // line 228
  653.         echo "        });
  654.     </script>
  655. ";
  656.         
  657.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  658.         
  659.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  660.     }
  661.     // line 232
  662.     public function block_popups($context, array $blocks = [])
  663.     {
  664.         $macros $this->macros;
  665.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  666.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  667.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  668.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  669.         // line 233
  670.         echo "    ";
  671.         $this->displayParentBlock("popups"$context$blocks);
  672.         echo "
  673.     ";
  674.         // line 234
  675.         if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  676.             // line 235
  677.             echo "        ";
  678.             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.'235$this->source); })()), "user", [], "any"falsefalsefalse235)) {
  679.                 // line 236
  680.                 echo "            ";
  681.                 $this->loadTemplate("Slivki/popups/add_comment_popup.html.twig""Slivki/sale/sale.html.twig"236)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
  682.                 // line 237
  683.                 echo "            ";
  684.                 $this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig""Slivki/sale/sale.html.twig"237)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
  685.                 // line 238
  686.                 echo "        ";
  687.             } else {
  688.                 // line 239
  689.                 echo "            ";
  690.                 $this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig""Slivki/sale/sale.html.twig"239)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
  691.                 // line 240
  692.                 echo "        ";
  693.             }
  694.             // line 241
  695.             echo "    ";
  696.         }
  697.         // line 242
  698.         echo "    ";
  699.         $this->loadTemplate("Slivki/popups/video_guide_popup.html.twig""Slivki/sale/sale.html.twig"242)->display($context);
  700.         
  701.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  702.         
  703.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  704.     }
  705.     // line 244
  706.     public function block_assetsBottom($context, array $blocks = [])
  707.     {
  708.         $macros $this->macros;
  709.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  710.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""assetsBottom"));
  711.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  712.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""assetsBottom"));
  713.         // line 245
  714.         echo "    ";
  715.         $this->displayParentBlock("assetsBottom"$context$blocks);
  716.         echo "
  717.     <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  718. ";
  719.         
  720.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  721.         
  722.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  723.     }
  724.     // line 249
  725.     public function block_bottomContentBlock($context, array $blocks = [])
  726.     {
  727.         $macros $this->macros;
  728.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  729.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bottomContentBlock"));
  730.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  731.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bottomContentBlock"));
  732.         // line 250
  733.         echo "    <div class=\"clear\"></div>
  734.     <div class=\"after-content-block content\">
  735.         <div class=\"sale-relations-block-list\">
  736.             ";
  737.         // line 253
  738.         ob_start();
  739.         // line 254
  740.         echo "                ";
  741.         $this->loadTemplate("Slivki/sale/sale_relations_block.html.twig""Slivki/sale/sale.html.twig"254)->display(twig_array_merge($context, ["title" => "Еще по теме""saleList" => twig_last($this->env, (isset($context["relatedSales"]) || array_key_exists("relatedSales"$context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.'254$this->source); })()))]));
  742.         // line 255
  743.         echo "                ";
  744.         $this->loadTemplate("Slivki/sale/sale_relations_block.html.twig""Slivki/sale/sale.html.twig"255)->display(twig_array_merge($context, ["title" => "Популярные""saleList" => twig_get_attribute($this->env$this->source, (isset($context["relatedSales"]) || array_key_exists("relatedSales"$context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.'255$this->source); })()), twig_constant("Slivki\\Repository\\SaleRepository::POPULAR_SALE_CATEGORY_ID"), [], "array"falsefalsefalse255)]));
  745.         // line 256
  746.         echo "                ";
  747.         $this->loadTemplate("Slivki/sale/sale_relations_block.html.twig""Slivki/sale/sale.html.twig"256)->display(twig_array_merge($context, ["title" => "Смотрите также""saleList" => twig_get_attribute($this->env$this->source, (isset($context["relatedSales"]) || array_key_exists("relatedSales"$context) ? $context["relatedSales"] : (function () { throw new RuntimeError('Variable "relatedSales" does not exist.'256$this->source); })()), twig_constant("Slivki\\Entity\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID"), [], "array"falsefalsefalse256)]));
  748.         // line 257
  749.         echo "            ";
  750.         $___internal_parse_1_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  751.         // line 253
  752.         echo twig_spaceless($___internal_parse_1_);
  753.         // line 258
  754.         echo "        </div>
  755.         <div id=\"saleCommentsBlock\" style=\"visibility: hidden\"></div>
  756.     </div>
  757. ";
  758.         
  759.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  760.         
  761.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  762.     }
  763.     public function getTemplateName()
  764.     {
  765.         return "Slivki/sale/sale.html.twig";
  766.     }
  767.     public function isTraitable()
  768.     {
  769.         return false;
  770.     }
  771.     public function getDebugInfo()
  772.     {
  773.         return array (  821 => 258,  819 => 253,  816 => 257,  813 => 256,  810 => 255,  807 => 254,  805 => 253,  800 => 250,  790 => 249,  776 => 245,  766 => 244,  755 => 242,  752 => 241,  749 => 240,  746 => 239,  743 => 238,  740 => 237,  737 => 236,  734 => 235,  732 => 234,  727 => 233,  717 => 232,  705 => 228,  690 => 216,  684 => 212,  682 => 211,  676 => 208,  665 => 203,  655 => 195,  653 => 194,  642 => 187,  632 => 186,  620 => 183,  616 => 182,  609 => 177,  606 => 176,  603 => 175,  595 => 173,  593 => 172,  590 => 171,  584 => 167,  569 => 165,  565 => 164,  558 => 160,  555 => 159,  553 => 158,  550 => 157,  540 => 155,  534 => 153,  532 => 152,  528 => 150,  520 => 147,  513 => 146,  511 => 132,  506 => 143,  497 => 141,  493 => 140,  489 => 138,  480 => 136,  476 => 135,  472 => 134,  469 => 133,  466 => 132,  463 => 131,  461 => 130,  454 => 129,  450 => 127,  448 => 126,  445 => 125,  443 => 124,  434 => 120,  428 => 119,  424 => 118,  421 => 117,  419 => 116,  416 => 115,  402 => 105,  400 => 104,  395 => 103,  391 => 101,  388 => 100,  386 => 99,  382 => 98,  379 => 97,  372 => 93,  369 => 92,  367 => 91,  364 => 90,  359 => 87,  353 => 85,  351 => 84,  347 => 83,  343 => 82,  337 => 79,  331 => 76,  327 => 74,  324 => 73,  319 => 70,  313 => 68,  311 => 67,  307 => 66,  303 => 65,  299 => 63,  293 => 61,  289 => 59,  287 => 58,  282 => 56,  277 => 55,  275 => 54,  272 => 53,  269 => 52,  265 => 50,  263 => 49,  260 => 48,  258 => 47,  254 => 45,  251 => 44,  248 => 43,  245 => 42,  235 => 41,  221 => 37,  218 => 36,  208 => 35,  191 => 32,  181 => 31,  170 => 28,  167 => 27,  164 => 26,  154 => 25,  138 => 20,  128 => 19,  117 => 16,  114 => 15,  111 => 14,  108 => 13,  105 => 12,  95 => 11,  78 => 4,  68 => 3,  45 => 1,);
  774.     }
  775.     public function getSourceContext()
  776.     {
  777.         return new Source("{% extends 'base.html.twig' %}
  778. {% block stylesheets %}
  779.     {{ parent() }}
  780.     <style type=\"text/css\">
  781.         #sidebarShowMore{display:none;}
  782.     </style>
  783.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
  784. {% endblock %}
  785. {% block header %}
  786.     {% if isMobileDevice() %}
  787.         {% include 'header_sales_mobile.html.twig' %}
  788.     {% else %}
  789.         {% include 'header_sales.html.twig' with {'withSearch': true} %}
  790.     {% endif %}
  791. {% endblock %}
  792. {% block ogimage %}
  793.     <meta property=\"og:image\" content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(sale.getIcon(), 338, 220)|url_encode|replace({'%2F': '/'}) }}\" />
  794.     <meta property=\"og:image:width\" content=\"338\"/>
  795.     <meta property=\"og:image:height\" content=\"220\"/>
  796. {% endblock %}
  797. {% block left_sidebar %}
  798.     {% if not isFlier %}
  799.         {% include 'left_sidebar.html.twig' %}
  800.     {% endif %}
  801. {% endblock %}
  802. {% block mainColumnClass %}
  803.     {% if isFlier %}{{ parent() }} one-column{% else %}{{ parent() }}{{ saleVersion.getDescriptionBackgroundUrl() ? ' sale-with-background' }}{% endif %}
  804. {% endblock %}
  805. {% block mainColumnParameters %}
  806.     {% if not isMobileDevice() %}
  807.         {{ saleVersion.getDescriptionBackgroundUrl() ? 'style=background:url(' ~ saleVersion.getDescriptionBackgroundUrl()  ~ ')' }}
  808.     {% endif %}
  809. {% endblock %}
  810. {% block main_content %}
  811.     {% if parentCategoryList and saleVersion.getDescriptionBackgroundUrl() == '' %}
  812.         {% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList } only %}
  813.     {% endif %}
  814.     <div class=\"clearfix\"></div>
  815.     {% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::SALE_CATEGORY_ID'), sale.getID()) %}
  816.     <div class=\"saleDetail\">
  817.         {% if sale.getID() == 280659 %}
  818.             <img height=\"1\" width=\"1\" src=\"https://mc.admetrica.ru/show?cmn_id=10141&plt_id=27346&crv_id=69064&evt_t=render&ad_type=banner&rnd=%system.random%\" style=\"display:none;\">
  819.         {% endif %}
  820.         {% if saleVersion.getDescriptionTitleBackgroundUrl() %}
  821.             <div id=\"saleTitleBlock\" class=\"with-share-block\">
  822.                 {% include 'Slivki/share_block.html.twig' %}
  823.                 <img src=\"{{ saleVersion.getDescriptionTitleBackgroundUrl() }}\" />
  824.                 <a href=\"{{ base_url }}/am-fotogid\">Фотогиды</a>
  825.                 <h1>
  826.                     {% if sale.getID() == 287031  %}
  827.                         Стань агентом банка! <br> Рекомендуй другу карточку <nobr>«1-2-3»</nobr> и оба получите по <nobr>5 рублей!</nobr>
  828.                     {% else %}
  829.                         {{ sale.getTitle() }}
  830.                     {% endif %}
  831.                 </h1>
  832.                 <div>
  833.                     {{ sale.getSince()|date('d.m.Y') }}
  834.                     <i class=\"slivki-icon-eye\"></i>{{ visitCount }}
  835.                     {% if commentsAmount > 5  %}
  836.                         <i class=\"slivki-icon-comment-empty\"></i>{{ commentsAmount }}
  837.                     {% endif %}
  838.                 </div>
  839.             </div>
  840.         {% else %}
  841.             {% set ratingPercentage =  ratingWithCount.rating * 100 / 5 %}
  842.             <div class=\"float-right text-muted\" style=\"margin-left: 5px\">
  843.                 <div class=\"star-ratings-css\">
  844.                     <div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  845.                     <div class=\"star-ratings-css-bottom\"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  846.                 </div>
  847.                 ({{ ratingWithCount.amount }})
  848.             </div>
  849.             <div class=\"text-muted float-right\">
  850.                 {{ sale.getSince()|date('d.m.Y') }}
  851.                 <i class=\"slivki-icon-eye\"></i>{{ visitCount }}
  852.                 {% if commentsAmount > 5  %}
  853.                     <i class=\"slivki-icon-comment-empty\"></i>{{ commentsAmount }}
  854.                 {% endif %}
  855.             </div>
  856.             <div class=\"clear\"></div>
  857.         {% endif %}
  858.         {% if saleVersion.getFancyDescription() and saleVersion.getFancyDescription().getDescription()|raw != '' %}
  859.             <div id=\"saleFancyDescriptionBlock\">
  860.                 {{ saleVersion.getFancyDescription().getDescription()|raw }}
  861.             </div>
  862.             <div id=\"saleCurledPage\"><span>&nbsp;</span><i></i></div>
  863.         {% endif %}
  864.         <div class=\"saleBody\" data-oid=\"{{ sale.getID() }}\">
  865.             {% if saleVersion.getDescriptionBackgroundUrl() != '' %}
  866.                 {% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList } only %}
  867.                 <div class=\"clear\"></div>
  868.             {% endif %}
  869.             {{ descriptions|raw }}
  870.             {% if sale.isShowMap() %}
  871.                 <div id=\"saleGeoLocationData\" data-json=\"{{ saleGeoLocationData }}\"></div>
  872.                 <div id=\"saleDetailsMapWrapper\" class=\"category-map-wrapper\">
  873.                     <div id=\"saleDetailsMap\" class=\"category-map\"></div>
  874.                     <div id=\"zoomIn\"></div>
  875.                     <div id=\"zoomOut\"></div>
  876.                     <a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать местоположение</a>
  877.                     <a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
  878.                     <a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
  879.                 </div>
  880.             {% endif %}
  881.             <div class=\"saleFooterDetail\">
  882.                 {% include 'Slivki/share_stat.html.twig' %}
  883.                 <div class=\"date\">
  884.                     {{ sale.getSince()|date('d.m.Y') }}
  885.                     <span data-toggle=\"tooltip\" data-placement=\"top\" data-original-title='Просмотров за {{ daysFromStart }} {{ ['день', 'дня', 'дней']|plural(daysFromStart) }}'>
  886.                         <i class=\"slivki-icon-eye\"></i>{{ visitCount }} ({{ dayVisitCount }} за сутки)
  887.                     </span>
  888.                 </div>
  889.                 {% if app.user %}
  890.                     <div class=\"vote-entity-block\">
  891.                         {% if userVote == 0 %}
  892.                             <div class=\"vote-pls\">Оцените, пожалуйста, эту статью:</div>
  893.                         {% endif %}
  894.                         <div class=\"your-vote {{ userVote == 0 ? ' hidden' }}\">Ваша оценка: <span id=\"yourVote\">{{ userVote }}</span></div>
  895.                         {% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::SALE_CATEGORY_ID'), sale.getID()) %}
  896.                         {% set ratingPercentage =  userVote == 0 ? 0 : ratingWithCount.rating * 100 / 5 %}
  897.                         {% apply spaceless %}
  898.                             <div class=\"star-ratings-css\">
  899.                                 <div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\">
  900.                                     {% for i in 1..5 %}
  901.                                         <span data-id=\"{{ i }}\">★</span>
  902.                                     {% endfor %}
  903.                                 </div>
  904.                                 <div class=\"star-ratings-css-bottom\">
  905.                                     {% for i in 1..5 %}
  906.                                         <span data-id=\"{{ i }}\">☆</span>
  907.                                     {% endfor %}
  908.                                 </div>
  909.                             </div>
  910.                         {% endapply %}
  911.                         <span class=\"vote-avg-rating {{ userVote == 0 ? ' hidden' }}\">(<span id=\"avgSaleRating\">{{ ratingWithCount.rating|number_format(1) }}</span>)</span>
  912.                         <div class=\"total-votes {{ userVote == 0 ? ' hidden' }}\">Всего голосов: <span id=\"totalSaleVotesCnt\">{{ ratingWithCount.ratingCount }}</span></div>
  913.                     </div>
  914.                 {% endif %}
  915.                 <div id=\"readabilityCheckpoint\"></div>
  916.                 {% if commentsAmount > 0 %}
  917.                     <a href=\"javascript:void(0)\" id=\"showSaleCommentsButton\" class=\"button\">Отзывы ({{ commentsAmount }})</a>
  918.                 {% else %}
  919.                     <span class=\"addVoteLink button mb-1\" id=\"addVoteLink\" data-oid=\"{{ sale.getID() }}\" data-type=\"{{ constant('Slivki\\\\Entity\\\\Comment::TYPE_SALE_COMMENT') }}\" data-action=\"comment_add\" data-toggle=\"modal\" data-target=\"{{ app.user ? '#addVoteBox' : '#onlyRegistered' }}\" >Добавить отзыв</span>
  920.                 {% endif %}
  921.                 {% if not isMobileDevice() and sale.getVersions().count() > 1 %}
  922.                     <div id=\"saleHistory\">
  923.                         <a class=\"selected\" href=\"javascript:void(0)\">{{ isFlier ? 'Архив листовок' : 'Архив новости' }}</a>
  924.                         <span></span>
  925.                         <div id=\"saleHistoryBox\">
  926.                             <div class=\"sale-history-arrow-box sale-history-box\">
  927.                                 {% for version in sale.getVersions() %}
  928.                                     <a {{ version.getID() == saleVersion.getID() ? 'class=active' }} href=\"{{ app.request.pathInfo }}?version={{ version.getID() }}\">{{ version.getName() }}</a>
  929.                                 {% endfor %}
  930.                             </div>
  931.                         </div>
  932.                     </div>
  933.                 {% endif %}
  934.                 {% if director %}
  935.                     <p class=\"director-info\"><span> {{ director.getLegalEntity()}} УНП: {{ director.getTaxID() }} </span> </p>
  936.                 {% endif %}
  937.                 {% include 'Slivki/subscribe_block.html.twig' %}
  938.                 {% include 'Slivki/breadcrumbs_footer.html.twig' with { 'parentCategoryList': parentCategoryList, 'title': sale.getTitle() } only %}
  939.                 <div class=\"clear\"></div>
  940.             </div>
  941.         </div>
  942.     </div>
  943.     <input id=\"stock-id\" value=\"{{ sale.getID() }}\">
  944.     <input type=\"hidden\" id=\"saleVersionID\" value=\"{{ saleVersion.getID() }}\">
  945. {% endblock %}
  946. {% block javascripts %}
  947.     {{ parent() }}
  948.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  949.     <script src=\"/js/readability.js?v=4\" type=\"text/javascript\"></script>
  950.     <script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
  951.     <script type=\"text/javascript\">
  952.         \$(document).ready(function () {
  953.             \$(document).off( \"click\", \"#sidebarShowMoreWrap\");
  954.             {% if commentsAmount > 0 %}
  955.                 \$(document).on(\"click\", \"#showSaleCommentsButton\", function() {
  956.                     if (\$('.votes').length) {
  957.                         \$('html,body').animate({scrollTop: \$(\"#saleCommentsBlock\").offset().top - 100}, 'slow');
  958.                         return false;
  959.                     }
  960.                     return false;
  961.                 });
  962.             {% endif %}
  963.             \$.get(\"/get_comment_box/{{ constant('Slivki\\\\Entity\\\\Comment::TYPE_SALE_COMMENT') }}/{{ sale.getID() }}\", function (data) {
  964.                 \$('#saleCommentsBlock').html(data);
  965.                 \$('#saleCommentsBlock').css('visibility', 'visible');
  966.                 initVoteBox(true);
  967.                 initTooltip();
  968.                 proceedComments({{ app.user ? app.user.getID() : 0 }});
  969.                 uploadPhoto('/comment/image_upload', '/comment/image_remove');
  970.             });
  971.             {% if app.user %}
  972.             \$('.vote-entity-block .star-ratings-css span').click(function () {
  973.                 var rating = \$(this).attr('data-id');
  974.                 var starRatingBlock = \$('.vote-entity-block .star-ratings-css');
  975.                 \$('.vote-entity-block .star-ratings-css-top').css('width', rating * 20 + '%');
  976.                 \$.get('/profile/vote_sale/' + {{ sale.getID }} + '/' + rating, function (data) {
  977.                     \$('#yourVote').html(rating);
  978.                     \$('#avgSaleRating').html(parseFloat(data.rating).toFixed(1));
  979.                     \$('#totalSaleVotesCnt').html(data.ratingCount);
  980.                     \$('.vote-pls').remove();
  981.                     \$('.vote-avg-rating').removeClass('hidden');
  982.                     \$('.total-votes').removeClass('hidden');
  983.                     \$('.your-vote').removeClass('hidden');
  984.                 });
  985.                 return false;
  986.             });
  987.             {% endif %}
  988.         });
  989.     </script>
  990. {% endblock %}
  991. {% block popups %}
  992.     {{ parent() }}
  993.     {% if not isMobileDevice() %}
  994.         {% if app.user %}
  995.             {% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
  996.             {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  997.         {% else %}
  998.             {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  999.         {% endif %}
  1000.     {% endif %}
  1001.     {% include 'Slivki/popups/video_guide_popup.html.twig' %}
  1002. {% endblock %}
  1003. {% block assetsBottom %}
  1004.     {{ parent() }}
  1005.     <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  1006. {% endblock %}
  1007. {% block bottomContentBlock %}
  1008.     <div class=\"clear\"></div>
  1009.     <div class=\"after-content-block content\">
  1010.         <div class=\"sale-relations-block-list\">
  1011.             {% apply spaceless %}
  1012.                 {% include 'Slivki/sale/sale_relations_block.html.twig' with {'title': 'Еще по теме', 'saleList': relatedSales|last} %}
  1013.                 {% include 'Slivki/sale/sale_relations_block.html.twig' with {'title': 'Популярные', 'saleList': relatedSales[constant('Slivki\\\\Repository\\\\SaleRepository::POPULAR_SALE_CATEGORY_ID')] } %}
  1014.                 {% include 'Slivki/sale/sale_relations_block.html.twig' with {'title': 'Смотрите также', 'saleList': relatedSales[constant('Slivki\\\\Entity\\\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID')]} %}
  1015.             {% endapply %}
  1016.         </div>
  1017.         <div id=\"saleCommentsBlock\" style=\"visibility: hidden\"></div>
  1018.     </div>
  1019. {% endblock %}
  1020. ""Slivki/sale/sale.html.twig""/mnt/data/virtwww/vlad-slivki/templates/Slivki/sale/sale.html.twig");
  1021.     }
  1022. }