var/cache/dev/twig/40/4007ee6fda7305f7fc997d96369145099d073aa29ac938665a666889d9fdd8d6.php line 53

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/videoguide.html.twig */
  14. class __TwigTemplate_4e7a5224a09cc57f08935c53c27860ec470d49a552549c08030f511deb3633d9 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.             'ogimage' => [$this'block_ogimage'],
  24.             'mainColumnClass' => [$this'block_mainColumnClass'],
  25.             'main_content' => [$this'block_main_content'],
  26.             'assetsBottom' => [$this'block_assetsBottom'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.             'popups' => [$this'block_popups'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/videoguide.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/videoguide.html.twig"));
  43.         $this->parent $this->loadTemplate("base.html.twig""Slivki/sale/videoguide.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_ogimage($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  58.         // line 4
  59.         echo "    <meta property=\"og:image\" content=\"";
  60.         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.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "getSchemeAndHttpHost", [], "method"falsefalsefalse4), "html"nulltrue);
  61.         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.'4$this->source); })()), "getIcon", [], "method"falsefalsefalse4), 338220)), ["%2F" => "/"]), "html"nulltrue);
  62.         echo "\" />
  63.     <meta property=\"og:image:width\" content=\"338\"/>
  64.     <meta property=\"og:image:height\" content=\"220\"/>
  65. ";
  66.         
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.     }
  71.     // line 9
  72.     public function block_mainColumnClass($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  79.         $this->displayParentBlock("mainColumnClass"$context$blocks);
  80.         echo " one-column videoguide-details";
  81.         
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  83.         
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  85.     }
  86.     // line 11
  87.     public function block_main_content($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  94.         // line 12
  95.         echo "    <div class=\"breadcrumbs\">
  96.         <a href=\"";
  97.         // line 13
  98.         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.'13$this->source); })()), "html"nulltrue);
  99.         echo "\">Главная</a>
  100.         <i class=\"fa fa-angle-right\"></i><a href=\"";
  101.         // line 14
  102.         echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["videoguideCategory"]) || array_key_exists("videoguideCategory"$context) ? $context["videoguideCategory"] : (function () { throw new RuntimeError('Variable "videoguideCategory" does not exist.'14$this->source); })()), "category", [], "any"falsefalsefalse14), "getID", [], "method"falsefalsefalse14)), "html"nulltrue);
  103.         echo "\"> ";
  104.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["videoguideCategory"]) || array_key_exists("videoguideCategory"$context) ? $context["videoguideCategory"] : (function () { throw new RuntimeError('Variable "videoguideCategory" does not exist.'14$this->source); })()), "category", [], "any"falsefalsefalse14), "getName", [], "method"falsefalsefalse14), "html"nulltrue);
  105.         echo "</a>
  106.         <i class=\"fa fa-angle-right\"></i> ";
  107.         // line 15
  108.         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.'15$this->source); })()), "getTitle", [], "method"falsefalsefalse15), "html"nulltrue);
  109.         echo "
  110.     </div>
  111.     <div class=\"clear\"></div>
  112.     <div id=\"videoGuideDetailsContent\">
  113.         <iframe width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/";
  114.         // line 19
  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.'19$this->source); })()), "getVideoGuideYoutubeID", [], "method"falsefalsefalse19), "html"nulltrue);
  116.         echo "\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>
  117.         <h1>";
  118.         // line 20
  119.         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.'20$this->source); })()), "getTitle", [], "method"falsefalsefalse20), "html"nulltrue);
  120.         echo "</h1>
  121.         <div class=\"videoguide-details-info\">
  122.             <div><i class=\"fa fa-calendar-o\"></i> Опубликовано: ";
  123.         // line 22
  124.         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.'22$this->source); })()), "getSince", [], "method"falsefalsefalse22), "d.m.Y"), "html"nulltrue);
  125.         echo "</div>
  126.             <div><i class=\"slivki-icon-eye\"></i> Просмотров: ";
  127.         // line 23
  128.         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.'23$this->source); })()), "html"nulltrue);
  129.         echo "</div>
  130.             ";
  131.         // line 24
  132.         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.'24$this->source); })()), "getOfferLinkUrl", [], "method"falsefalsefalse24) && 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.'24$this->source); })()), "getOfferLinkName", [], "method"falsefalsefalse24)) && (!== 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.'24$this->source); })()), "getOfferLinkUrl", [], "method"falsefalsefalse24), ""))) && (!== 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.'24$this->source); })()), "getOfferLinkName", [], "method"falsefalsefalse24), "")))) {
  133.             // line 25
  134.             echo "                <a class=\"sale-offer-link-btn\" href=\"";
  135.             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.'25$this->source); })()), "getOfferLinkUrl", [], "method"falsefalsefalse25), "html"nulltrue);
  136.             echo "\">";
  137.             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.'25$this->source); })()), "getOfferLinkName", [], "method"falsefalsefalse25), "html"nulltrue);
  138.             echo "</a>
  139.             ";
  140.         }
  141.         // line 27
  142.         echo "            <div class=\"share-block-container\">";
  143.         $this->loadTemplate("Slivki/share_block.html.twig""Slivki/sale/videoguide.html.twig"27)->display($context);
  144.         echo " Поделиться</div>
  145.         </div>
  146.         <div class=\"videoguide-additional-info\">
  147.             ";
  148.         // line 30
  149.         if (array_key_exists("authorCategory"$context)) {
  150.             // line 31
  151.             echo "            <a class=\"videoguide-author-category\" href=\"";
  152.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["authorCategory"]) || array_key_exists("authorCategory"$context) ? $context["authorCategory"] : (function () { throw new RuntimeError('Variable "authorCategory" does not exist.'31$this->source); })()), "category", [], "any"falsefalsefalse31), "getID", [], "method"falsefalsefalse31)), "html"nulltrue);
  153.             echo "\" target=\"_blank\">
  154.                 <img src=\"";
  155.             // line 32
  156.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["authorCategory"]) || array_key_exists("authorCategory"$context) ? $context["authorCategory"] : (function () { throw new RuntimeError('Variable "authorCategory" does not exist.'32$this->source); })()), "category", [], "any"falsefalsefalse32), "getHotFeedIconMedia", [], "method"falsefalsefalse32), 128128), "html"nulltrue);
  157.             echo "\" alt=''/>
  158.                 <div>
  159.                     ";
  160.             // line 34
  161.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["authorCategory"]) || array_key_exists("authorCategory"$context) ? $context["authorCategory"] : (function () { throw new RuntimeError('Variable "authorCategory" does not exist.'34$this->source); })()), "category", [], "any"falsefalsefalse34), "getName", [], "method"falsefalsefalse34), "html"nulltrue);
  162.             echo "<br />
  163.                     <span>";
  164.             // line 35
  165.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["authorCategory"]) || array_key_exists("authorCategory"$context) ? $context["authorCategory"] : (function () { throw new RuntimeError('Variable "authorCategory" does not exist.'35$this->source); })()), "category", [], "any"falsefalsefalse35), "getEntityCount", [], "method"falsefalsefalse35), "html"nulltrue);
  166.             echo " репортаж";
  167.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> ""=> "a"=> "ей"], twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["authorCategory"]) || array_key_exists("authorCategory"$context) ? $context["authorCategory"] : (function () { throw new RuntimeError('Variable "authorCategory" does not exist.'35$this->source); })()), "category", [], "any"falsefalsefalse35), "getEntityCount", [], "method"falsefalsefalse35)), "html"nulltrue);
  168.             echo "</span><br />
  169.                     <span>";
  170.             // line 36
  171.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["authorCategory"]) || array_key_exists("authorCategory"$context) ? $context["authorCategory"] : (function () { throw new RuntimeError('Variable "authorCategory" does not exist.'36$this->source); })()), "visitCount", [], "any"falsefalsefalse36), "html"nulltrue);
  172.             echo " просмотр";
  173.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> ""=> "a"=> "ов"], twig_get_attribute($this->env$this->source, (isset($context["authorCategory"]) || array_key_exists("authorCategory"$context) ? $context["authorCategory"] : (function () { throw new RuntimeError('Variable "authorCategory" does not exist.'36$this->source); })()), "visitCount", [], "any"falsefalsefalse36)), "html"nulltrue);
  174.             echo "</span>
  175.                 </div>
  176.                 <div class=\"clear\"></div>
  177.             </a>
  178.             ";
  179.         }
  180.         // line 41
  181.         echo "            ";
  182.         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.'41$this->source); })()), "user", [], "any"falsefalsefalse41)) {
  183.             // line 42
  184.             echo "                <div class=\"vote-entity-block\">
  185.                     ";
  186.             // line 43
  187.             if ((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'43$this->source); })()), 0))) {
  188.                 // line 44
  189.                 echo "                        <div class=\"vote-pls\">Оцените, пожалуйста, это видео:</div>
  190.                     ";
  191.             }
  192.             // line 46
  193.             echo "                    <div class=\"your-vote ";
  194.             echo (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'46$this->source); })()), 0))) ? (" hidden") : (""));
  195.             echo "\">Ваша оценка: <span id=\"yourVote\">";
  196.             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.'46$this->source); })()), "html"nulltrue);
  197.             echo "</span></div>
  198.                     ";
  199.             // line 47
  200.             $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));
  201.             // line 48
  202.             echo "                    ";
  203.             $context["ratingPercentage"] = (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'48$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.'48$this->source); })()), "rating", [], "any"falsefalsefalse48) * 100) / 5)));
  204.             // line 49
  205.             echo "                    ";
  206.             ob_start();
  207.             // line 50
  208.             echo "                        <div class=\"star-ratings-css\">
  209.                             <div class=\"star-ratings-css-top\" style=\"width: ";
  210.             // line 51
  211.             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.'51$this->source); })()), "html"nulltrue);
  212.             echo "%\">
  213.                                 ";
  214.             // line 52
  215.             $context['_parent'] = $context;
  216.             $context['_seq'] = twig_ensure_traversable(range(15));
  217.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  218.                 // line 53
  219.                 echo "                                    <span data-id=\"";
  220.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  221.                 echo "\">★</span>
  222.                                 ";
  223.             }
  224.             $_parent $context['_parent'];
  225.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  226.             $context array_intersect_key($context$_parent) + $_parent;
  227.             // line 55
  228.             echo "                            </div>
  229.                             <div class=\"star-ratings-css-bottom\">
  230.                                 ";
  231.             // line 57
  232.             $context['_parent'] = $context;
  233.             $context['_seq'] = twig_ensure_traversable(range(15));
  234.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  235.                 // line 58
  236.                 echo "                                    <span data-id=\"";
  237.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  238.                 echo "\">☆</span>
  239.                                 ";
  240.             }
  241.             $_parent $context['_parent'];
  242.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  243.             $context array_intersect_key($context$_parent) + $_parent;
  244.             // line 60
  245.             echo "                            </div>
  246.                         </div>
  247.                     ";
  248.             $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  249.             // line 49
  250.             echo twig_spaceless($___internal_parse_0_);
  251.             // line 63
  252.             echo "                    <span class=\"vote-avg-rating ";
  253.             echo (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'63$this->source); })()), 0))) ? (" hidden") : (""));
  254.             echo "\">(<span id=\"avgSaleRating\">";
  255.             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.'63$this->source); })()), "rating", [], "any"falsefalsefalse63), 1), "html"nulltrue);
  256.             echo "</span>)</span>
  257.                     <div class=\"total-votes ";
  258.             // line 64
  259.             echo (((=== twig_compare((isset($context["userVote"]) || array_key_exists("userVote"$context) ? $context["userVote"] : (function () { throw new RuntimeError('Variable "userVote" does not exist.'64$this->source); })()), 0))) ? (" hidden") : (""));
  260.             echo "\">Всего голосов: <span id=\"totalSaleVotesCnt\">";
  261.             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.'64$this->source); })()), "ratingCount", [], "any"falsefalsefalse64), "html"nulltrue);
  262.             echo "</span></div>
  263.                 </div>
  264.             ";
  265.         }
  266.         // line 67
  267.         echo "        </div>
  268.         <div class=\"clear\"></div>
  269.         <div class=\"subscribe-on-youtube\">
  270.             <div>
  271.                 <strong>Подписывайтесь на наш канал в Youtube!</strong><br>
  272.                 Свежие обзоры из магазинов каждый день!
  273.             </div>
  274.             <a target=\"_blank\" href=\"https://www.youtube.com/channel/UCDy2sjRppCchend8p76cBxA?sub_confirmation=1\">
  275.                 ► Подписаться
  276.             </a>
  277.         </div>
  278.         <div id=\"saleCommentsBlock\" style=\"visibility: hidden\"></div>
  279.     </div>
  280.     <div id=\"videoGuideDetailsSidebar\">
  281.         <div>Следущее:</div>
  282.         <div id=\"videoGuideDetailsSidebarContent\">
  283.             ";
  284.         // line 83
  285.         $this->loadTemplate("Slivki/sale/videoguide_sidebar_list.html.twig""Slivki/sale/videoguide.html.twig"83)->display($context);
  286.         // line 84
  287.         echo "        </div>
  288.         <div id=\"sidebarVideoguideLoader\"></div>
  289.     </div>
  290.     <div class=\"clear\"></div>
  291.     <input type=\"hidden\" id=\"stock-id\" value=\"";
  292.         // line 88
  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.'88$this->source); })()), "getID", [], "method"falsefalsefalse88), "html"nulltrue);
  294.         echo "\">
  295.     <input type=\"hidden\" id=\"seenVideoguides\" value=\"";
  296.         // line 89
  297.         echo twig_escape_filter($this->env, (isset($context["seenVideoguides"]) || array_key_exists("seenVideoguides"$context) ? $context["seenVideoguides"] : (function () { throw new RuntimeError('Variable "seenVideoguides" does not exist.'89$this->source); })()), "html"nulltrue);
  298.         echo "\">
  299. ";
  300.         
  301.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  302.         
  303.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  304.     }
  305.     // line 92
  306.     public function block_assetsBottom($context, array $blocks = [])
  307.     {
  308.         $macros $this->macros;
  309.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  310.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""assetsBottom"));
  311.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  312.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""assetsBottom"));
  313.         // line 93
  314.         echo "    ";
  315.         $this->displayParentBlock("assetsBottom"$context$blocks);
  316.         echo "
  317.     <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  318. ";
  319.         
  320.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  321.         
  322.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  323.     }
  324.     // line 97
  325.     public function block_javascripts($context, array $blocks = [])
  326.     {
  327.         $macros $this->macros;
  328.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  329.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  330.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  331.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  332.         // line 98
  333.         echo "    ";
  334.         $this->displayParentBlock("javascripts"$context$blocks);
  335.         echo "
  336.     <script src=\"/js/videoguide.js?v=";
  337.         // line 99
  338.         echo twig_escape_filter($this->env, (isset($context["videoguide_js_version"]) || array_key_exists("videoguide_js_version"$context) ? $context["videoguide_js_version"] : (function () { throw new RuntimeError('Variable "videoguide_js_version" does not exist.'99$this->source); })()), "html"nulltrue);
  339.         echo "\"></script>
  340. ";
  341.         
  342.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  343.         
  344.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  345.     }
  346.     // line 102
  347.     public function block_popups($context, array $blocks = [])
  348.     {
  349.         $macros $this->macros;
  350.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  351.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  352.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  353.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  354.         // line 103
  355.         echo "    ";
  356.         $this->displayParentBlock("popups"$context$blocks);
  357.         echo "
  358.     ";
  359.         // line 104
  360.         if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  361.             // line 105
  362.             echo "        ";
  363.             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.'105$this->source); })()), "user", [], "any"falsefalsefalse105)) {
  364.                 // line 106
  365.                 echo "            ";
  366.                 $this->loadTemplate("Slivki/popups/add_comment_popup.html.twig""Slivki/sale/videoguide.html.twig"106)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
  367.                 // line 107
  368.                 echo "            ";
  369.                 $this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig""Slivki/sale/videoguide.html.twig"107)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
  370.                 // line 108
  371.                 echo "        ";
  372.             } else {
  373.                 // line 109
  374.                 echo "            ";
  375.                 $this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig""Slivki/sale/videoguide.html.twig"109)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
  376.                 // line 110
  377.                 echo "        ";
  378.             }
  379.             // line 111
  380.             echo "    ";
  381.         }
  382.         
  383.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  384.         
  385.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  386.     }
  387.     public function getTemplateName()
  388.     {
  389.         return "Slivki/sale/videoguide.html.twig";
  390.     }
  391.     public function isTraitable()
  392.     {
  393.         return false;
  394.     }
  395.     public function getDebugInfo()
  396.     {
  397.         return array (  419 => 111,  416 => 110,  413 => 109,  410 => 108,  407 => 107,  404 => 106,  401 => 105,  399 => 104,  394 => 103,  384 => 102,  372 => 99,  367 => 98,  357 => 97,  343 => 93,  333 => 92,  321 => 89,  317 => 88,  311 => 84,  309 => 83,  291 => 67,  283 => 64,  276 => 63,  274 => 49,  269 => 60,  260 => 58,  256 => 57,  252 => 55,  243 => 53,  239 => 52,  235 => 51,  232 => 50,  229 => 49,  226 => 48,  224 => 47,  217 => 46,  213 => 44,  211 => 43,  208 => 42,  205 => 41,  195 => 36,  189 => 35,  185 => 34,  180 => 32,  175 => 31,  173 => 30,  166 => 27,  158 => 25,  156 => 24,  152 => 23,  148 => 22,  143 => 20,  139 => 19,  132 => 15,  126 => 14,  122 => 13,  119 => 12,  109 => 11,  89 => 9,  73 => 4,  63 => 3,  40 => 1,);
  398.     }
  399.     public function getSourceContext()
  400.     {
  401.         return new Source("{% extends 'base.html.twig' %}
  402. {% block ogimage %}
  403.     <meta property=\"og:image\" content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(sale.getIcon(), 338, 220)|url_encode|replace({'%2F': '/'}) }}\" />
  404.     <meta property=\"og:image:width\" content=\"338\"/>
  405.     <meta property=\"og:image:height\" content=\"220\"/>
  406. {% endblock %}
  407. {% block mainColumnClass %}{{ parent() }} one-column videoguide-details{% endblock %}
  408. {% block main_content %}
  409.     <div class=\"breadcrumbs\">
  410.         <a href=\"{{ base_url }}\">Главная</a>
  411.         <i class=\"fa fa-angle-right\"></i><a href=\"{{ getURL(\"Slivki:Sale:category\", videoguideCategory.category.getID()) }}\"> {{ videoguideCategory.category.getName() }}</a>
  412.         <i class=\"fa fa-angle-right\"></i> {{ sale.getTitle() }}
  413.     </div>
  414.     <div class=\"clear\"></div>
  415.     <div id=\"videoGuideDetailsContent\">
  416.         <iframe width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/{{ sale.getVideoGuideYoutubeID() }}\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>
  417.         <h1>{{ sale.getTitle() }}</h1>
  418.         <div class=\"videoguide-details-info\">
  419.             <div><i class=\"fa fa-calendar-o\"></i> Опубликовано: {{ sale.getSince()|date('d.m.Y') }}</div>
  420.             <div><i class=\"slivki-icon-eye\"></i> Просмотров: {{ visitCount }}</div>
  421.             {% if sale.getOfferLinkUrl() and sale.getOfferLinkName() and sale.getOfferLinkUrl() != '' and sale.getOfferLinkName() != '' %}
  422.                 <a class=\"sale-offer-link-btn\" href=\"{{ sale.getOfferLinkUrl() }}\">{{ sale.getOfferLinkName() }}</a>
  423.             {% endif %}
  424.             <div class=\"share-block-container\">{% include 'Slivki/share_block.html.twig' %} Поделиться</div>
  425.         </div>
  426.         <div class=\"videoguide-additional-info\">
  427.             {% if authorCategory is defined %}
  428.             <a class=\"videoguide-author-category\" href=\"{{ getURL(\"Slivki:Sale:category\", authorCategory.category.getID()) }}\" target=\"_blank\">
  429.                 <img src=\"{{ getImageURL(authorCategory.category.getHotFeedIconMedia(), 128, 128) }}\" alt=''/>
  430.                 <div>
  431.                     {{ authorCategory.category.getName() }}<br />
  432.                     <span>{{ authorCategory.category.getEntityCount() }} репортаж{{ ['', 'a', 'ей']|plural(authorCategory.category.getEntityCount()) }}</span><br />
  433.                     <span>{{ authorCategory.visitCount }} просмотр{{ ['', 'a', 'ов']|plural(authorCategory.visitCount) }}</span>
  434.                 </div>
  435.                 <div class=\"clear\"></div>
  436.             </a>
  437.             {% endif %}
  438.             {% if app.user %}
  439.                 <div class=\"vote-entity-block\">
  440.                     {% if userVote == 0 %}
  441.                         <div class=\"vote-pls\">Оцените, пожалуйста, это видео:</div>
  442.                     {% endif %}
  443.                     <div class=\"your-vote {{ userVote == 0 ? ' hidden' }}\">Ваша оценка: <span id=\"yourVote\">{{ userVote }}</span></div>
  444.                     {% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::SALE_CATEGORY_ID'), sale.getID()) %}
  445.                     {% set ratingPercentage =  userVote == 0 ? 0 : ratingWithCount.rating * 100 / 5 %}
  446.                     {% apply spaceless %}
  447.                         <div class=\"star-ratings-css\">
  448.                             <div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\">
  449.                                 {% for i in 1..5 %}
  450.                                     <span data-id=\"{{ i }}\">★</span>
  451.                                 {% endfor %}
  452.                             </div>
  453.                             <div class=\"star-ratings-css-bottom\">
  454.                                 {% for i in 1..5 %}
  455.                                     <span data-id=\"{{ i }}\">☆</span>
  456.                                 {% endfor %}
  457.                             </div>
  458.                         </div>
  459.                     {% endapply %}
  460.                     <span class=\"vote-avg-rating {{ userVote == 0 ? ' hidden' }}\">(<span id=\"avgSaleRating\">{{ ratingWithCount.rating|number_format(1) }}</span>)</span>
  461.                     <div class=\"total-votes {{ userVote == 0 ? ' hidden' }}\">Всего голосов: <span id=\"totalSaleVotesCnt\">{{ ratingWithCount.ratingCount }}</span></div>
  462.                 </div>
  463.             {% endif %}
  464.         </div>
  465.         <div class=\"clear\"></div>
  466.         <div class=\"subscribe-on-youtube\">
  467.             <div>
  468.                 <strong>Подписывайтесь на наш канал в Youtube!</strong><br>
  469.                 Свежие обзоры из магазинов каждый день!
  470.             </div>
  471.             <a target=\"_blank\" href=\"https://www.youtube.com/channel/UCDy2sjRppCchend8p76cBxA?sub_confirmation=1\">
  472.                 ► Подписаться
  473.             </a>
  474.         </div>
  475.         <div id=\"saleCommentsBlock\" style=\"visibility: hidden\"></div>
  476.     </div>
  477.     <div id=\"videoGuideDetailsSidebar\">
  478.         <div>Следущее:</div>
  479.         <div id=\"videoGuideDetailsSidebarContent\">
  480.             {% include 'Slivki/sale/videoguide_sidebar_list.html.twig' %}
  481.         </div>
  482.         <div id=\"sidebarVideoguideLoader\"></div>
  483.     </div>
  484.     <div class=\"clear\"></div>
  485.     <input type=\"hidden\" id=\"stock-id\" value=\"{{ sale.getID() }}\">
  486.     <input type=\"hidden\" id=\"seenVideoguides\" value=\"{{ seenVideoguides }}\">
  487. {% endblock %}
  488. {% block assetsBottom %}
  489.     {{ parent() }}
  490.     <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  491. {% endblock %}
  492. {% block javascripts %}
  493.     {{ parent() }}
  494.     <script src=\"/js/videoguide.js?v={{ videoguide_js_version }}\"></script>
  495. {% endblock %}
  496. {% block popups %}
  497.     {{ parent() }}
  498.     {% if not isMobileDevice() %}
  499.         {% if app.user %}
  500.             {% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
  501.             {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  502.         {% else %}
  503.             {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  504.         {% endif %}
  505.     {% endif %}
  506. {% endblock %}""Slivki/sale/videoguide.html.twig""/mnt/data/virtwww/anna/templates/Slivki/sale/videoguide.html.twig");
  507.     }
  508. }