<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Slivki/sale/videoguide.html.twig */
class __TwigTemplate_4e7a5224a09cc57f08935c53c27860ec470d49a552549c08030f511deb3633d9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'ogimage' => [$this, 'block_ogimage'],
'mainColumnClass' => [$this, 'block_mainColumnClass'],
'main_content' => [$this, 'block_main_content'],
'assetsBottom' => [$this, 'block_assetsBottom'],
'javascripts' => [$this, 'block_javascripts'],
'popups' => [$this, 'block_popups'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/sale/videoguide.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/sale/videoguide.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "Slivki/sale/videoguide.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_ogimage($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogimage"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogimage"));
// line 4
echo " <meta property=\"og:image\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "getSchemeAndHttpHost", [], "method", false, false, false, 4), "html", null, true);
echo twig_escape_filter($this->env, twig_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", false, false, false, 4), 338, 220)), ["%2F" => "/"]), "html", null, true);
echo "\" />
<meta property=\"og:image:width\" content=\"338\"/>
<meta property=\"og:image:height\" content=\"220\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
public function block_mainColumnClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
$this->displayParentBlock("mainColumnClass", $context, $blocks);
echo " one-column videoguide-details";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_main_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 12
echo " <div class=\"breadcrumbs\">
<a href=\"";
// line 13
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", null, true);
echo "\">Главная</a>
<i class=\"fa fa-angle-right\"></i><a href=\"";
// line 14
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category", twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 14), "getID", [], "method", false, false, false, 14)), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 14), "getName", [], "method", false, false, false, 14), "html", null, true);
echo "</a>
<i class=\"fa fa-angle-right\"></i> ";
// line 15
echo twig_escape_filter($this->env, 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.', 15, $this->source); })()), "getTitle", [], "method", false, false, false, 15), "html", null, true);
echo "
</div>
<div class=\"clear\"></div>
<div id=\"videoGuideDetailsContent\">
<iframe width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/";
// line 19
echo twig_escape_filter($this->env, 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.', 19, $this->source); })()), "getVideoGuideYoutubeID", [], "method", false, false, false, 19), "html", null, true);
echo "\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>
<h1>";
// line 20
echo twig_escape_filter($this->env, 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); })()), "getTitle", [], "method", false, false, false, 20), "html", null, true);
echo "</h1>
<div class=\"videoguide-details-info\">
<div><i class=\"fa fa-calendar-o\"></i> Опубликовано: ";
// line 22
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 22, $this->source); })()), "getSince", [], "method", false, false, false, 22), "d.m.Y"), "html", null, true);
echo "</div>
<div><i class=\"slivki-icon-eye\"></i> Просмотров: ";
// line 23
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", null, true);
echo "</div>
";
// line 24
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", false, false, false, 24) && 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", false, false, false, 24)) && (0 !== 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", false, false, false, 24), ""))) && (0 !== 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", false, false, false, 24), "")))) {
// line 25
echo " <a class=\"sale-offer-link-btn\" href=\"";
echo twig_escape_filter($this->env, 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.', 25, $this->source); })()), "getOfferLinkUrl", [], "method", false, false, false, 25), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, 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.', 25, $this->source); })()), "getOfferLinkName", [], "method", false, false, false, 25), "html", null, true);
echo "</a>
";
}
// line 27
echo " <div class=\"share-block-container\">";
$this->loadTemplate("Slivki/share_block.html.twig", "Slivki/sale/videoguide.html.twig", 27)->display($context);
echo " Поделиться</div>
</div>
<div class=\"videoguide-additional-info\">
";
// line 30
if (array_key_exists("authorCategory", $context)) {
// line 31
echo " <a class=\"videoguide-author-category\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category", twig_get_attribute($this->env, $this->source, 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.', 31, $this->source); })()), "category", [], "any", false, false, false, 31), "getID", [], "method", false, false, false, 31)), "html", null, true);
echo "\" target=\"_blank\">
<img src=\"";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env, $this->source, 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.', 32, $this->source); })()), "category", [], "any", false, false, false, 32), "getHotFeedIconMedia", [], "method", false, false, false, 32), 128, 128), "html", null, true);
echo "\" alt=''/>
<div>
";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 34, $this->source); })()), "category", [], "any", false, false, false, 34), "getName", [], "method", false, false, false, 34), "html", null, true);
echo "<br />
<span>";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 35, $this->source); })()), "category", [], "any", false, false, false, 35), "getEntityCount", [], "method", false, false, false, 35), "html", null, true);
echo " репортаж";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "", 1 => "a", 2 => "ей"], twig_get_attribute($this->env, $this->source, 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.', 35, $this->source); })()), "category", [], "any", false, false, false, 35), "getEntityCount", [], "method", false, false, false, 35)), "html", null, true);
echo "</span><br />
<span>";
// line 36
echo twig_escape_filter($this->env, 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", false, false, false, 36), "html", null, true);
echo " просмотр";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "", 1 => "a", 2 => "ов"], 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", false, false, false, 36)), "html", null, true);
echo "</span>
</div>
<div class=\"clear\"></div>
</a>
";
}
// line 41
echo " ";
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", false, false, false, 41)) {
// line 42
echo " <div class=\"vote-entity-block\">
";
// line 43
if ((0 === 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))) {
// line 44
echo " <div class=\"vote-pls\">Оцените, пожалуйста, это видео:</div>
";
}
// line 46
echo " <div class=\"your-vote ";
echo (((0 === 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") : (""));
echo "\">Ваша оценка: <span id=\"yourVote\">";
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", null, true);
echo "</span></div>
";
// line 47
$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", false, false, false, 47));
// line 48
echo " ";
$context["ratingPercentage"] = (((0 === 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", false, false, false, 48) * 100) / 5)));
// line 49
echo " ";
ob_start();
// line 50
echo " <div class=\"star-ratings-css\">
<div class=\"star-ratings-css-top\" style=\"width: ";
// line 51
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", null, true);
echo "%\">
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, 5));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 53
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">★</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " </div>
<div class=\"star-ratings-css-bottom\">
";
// line 57
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, 5));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 58
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">☆</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo " </div>
</div>
";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 49
echo twig_spaceless($___internal_parse_0_);
// line 63
echo " <span class=\"vote-avg-rating ";
echo (((0 === 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") : (""));
echo "\">(<span id=\"avgSaleRating\">";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, 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.', 63, $this->source); })()), "rating", [], "any", false, false, false, 63), 1), "html", null, true);
echo "</span>)</span>
<div class=\"total-votes ";
// line 64
echo (((0 === 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") : (""));
echo "\">Всего голосов: <span id=\"totalSaleVotesCnt\">";
echo twig_escape_filter($this->env, 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.', 64, $this->source); })()), "ratingCount", [], "any", false, false, false, 64), "html", null, true);
echo "</span></div>
</div>
";
}
// line 67
echo " </div>
<div class=\"clear\"></div>
<div class=\"subscribe-on-youtube\">
<div>
<strong>Подписывайтесь на наш канал в Youtube!</strong><br>
Свежие обзоры из магазинов каждый день!
</div>
<a target=\"_blank\" href=\"https://www.youtube.com/channel/UCDy2sjRppCchend8p76cBxA?sub_confirmation=1\">
► Подписаться
</a>
</div>
<div id=\"saleCommentsBlock\" style=\"visibility: hidden\"></div>
</div>
<div id=\"videoGuideDetailsSidebar\">
<div>Следущее:</div>
<div id=\"videoGuideDetailsSidebarContent\">
";
// line 83
$this->loadTemplate("Slivki/sale/videoguide_sidebar_list.html.twig", "Slivki/sale/videoguide.html.twig", 83)->display($context);
// line 84
echo " </div>
<div id=\"sidebarVideoguideLoader\"></div>
</div>
<div class=\"clear\"></div>
<input type=\"hidden\" id=\"stock-id\" value=\"";
// line 88
echo twig_escape_filter($this->env, 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.', 88, $this->source); })()), "getID", [], "method", false, false, false, 88), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"seenVideoguides\" value=\"";
// line 89
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", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 92
public function block_assetsBottom($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "assetsBottom"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "assetsBottom"));
// line 93
echo " ";
$this->displayParentBlock("assetsBottom", $context, $blocks);
echo "
<script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 97
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 98
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/js/videoguide.js?v=";
// line 99
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", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 102
public function block_popups($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popups"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popups"));
// line 103
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 104
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 105
echo " ";
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", false, false, false, 105)) {
// line 106
echo " ";
$this->loadTemplate("Slivki/popups/add_comment_popup.html.twig", "Slivki/sale/videoguide.html.twig", 106)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
// line 107
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/sale/videoguide.html.twig", 107)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 108
echo " ";
} else {
// line 109
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/sale/videoguide.html.twig", 109)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 110
echo " ";
}
// line 111
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/sale/videoguide.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block ogimage %}
<meta property=\"og:image\" content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(sale.getIcon(), 338, 220)|url_encode|replace({'%2F': '/'}) }}\" />
<meta property=\"og:image:width\" content=\"338\"/>
<meta property=\"og:image:height\" content=\"220\"/>
{% endblock %}
{% block mainColumnClass %}{{ parent() }} one-column videoguide-details{% endblock %}
{% block main_content %}
<div class=\"breadcrumbs\">
<a href=\"{{ base_url }}\">Главная</a>
<i class=\"fa fa-angle-right\"></i><a href=\"{{ getURL(\"Slivki:Sale:category\", videoguideCategory.category.getID()) }}\"> {{ videoguideCategory.category.getName() }}</a>
<i class=\"fa fa-angle-right\"></i> {{ sale.getTitle() }}
</div>
<div class=\"clear\"></div>
<div id=\"videoGuideDetailsContent\">
<iframe width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/{{ sale.getVideoGuideYoutubeID() }}\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>
<h1>{{ sale.getTitle() }}</h1>
<div class=\"videoguide-details-info\">
<div><i class=\"fa fa-calendar-o\"></i> Опубликовано: {{ sale.getSince()|date('d.m.Y') }}</div>
<div><i class=\"slivki-icon-eye\"></i> Просмотров: {{ visitCount }}</div>
{% if sale.getOfferLinkUrl() and sale.getOfferLinkName() and sale.getOfferLinkUrl() != '' and sale.getOfferLinkName() != '' %}
<a class=\"sale-offer-link-btn\" href=\"{{ sale.getOfferLinkUrl() }}\">{{ sale.getOfferLinkName() }}</a>
{% endif %}
<div class=\"share-block-container\">{% include 'Slivki/share_block.html.twig' %} Поделиться</div>
</div>
<div class=\"videoguide-additional-info\">
{% if authorCategory is defined %}
<a class=\"videoguide-author-category\" href=\"{{ getURL(\"Slivki:Sale:category\", authorCategory.category.getID()) }}\" target=\"_blank\">
<img src=\"{{ getImageURL(authorCategory.category.getHotFeedIconMedia(), 128, 128) }}\" alt=''/>
<div>
{{ authorCategory.category.getName() }}<br />
<span>{{ authorCategory.category.getEntityCount() }} репортаж{{ ['', 'a', 'ей']|plural(authorCategory.category.getEntityCount()) }}</span><br />
<span>{{ authorCategory.visitCount }} просмотр{{ ['', 'a', 'ов']|plural(authorCategory.visitCount) }}</span>
</div>
<div class=\"clear\"></div>
</a>
{% endif %}
{% if app.user %}
<div class=\"vote-entity-block\">
{% if userVote == 0 %}
<div class=\"vote-pls\">Оцените, пожалуйста, это видео:</div>
{% endif %}
<div class=\"your-vote {{ userVote == 0 ? ' hidden' }}\">Ваша оценка: <span id=\"yourVote\">{{ userVote }}</span></div>
{% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::SALE_CATEGORY_ID'), sale.getID()) %}
{% set ratingPercentage = userVote == 0 ? 0 : ratingWithCount.rating * 100 / 5 %}
{% apply spaceless %}
<div class=\"star-ratings-css\">
<div class=\"star-ratings-css-top\" style=\"width: {{ ratingPercentage }}%\">
{% for i in 1..5 %}
<span data-id=\"{{ i }}\">★</span>
{% endfor %}
</div>
<div class=\"star-ratings-css-bottom\">
{% for i in 1..5 %}
<span data-id=\"{{ i }}\">☆</span>
{% endfor %}
</div>
</div>
{% endapply %}
<span class=\"vote-avg-rating {{ userVote == 0 ? ' hidden' }}\">(<span id=\"avgSaleRating\">{{ ratingWithCount.rating|number_format(1) }}</span>)</span>
<div class=\"total-votes {{ userVote == 0 ? ' hidden' }}\">Всего голосов: <span id=\"totalSaleVotesCnt\">{{ ratingWithCount.ratingCount }}</span></div>
</div>
{% endif %}
</div>
<div class=\"clear\"></div>
<div class=\"subscribe-on-youtube\">
<div>
<strong>Подписывайтесь на наш канал в Youtube!</strong><br>
Свежие обзоры из магазинов каждый день!
</div>
<a target=\"_blank\" href=\"https://www.youtube.com/channel/UCDy2sjRppCchend8p76cBxA?sub_confirmation=1\">
► Подписаться
</a>
</div>
<div id=\"saleCommentsBlock\" style=\"visibility: hidden\"></div>
</div>
<div id=\"videoGuideDetailsSidebar\">
<div>Следущее:</div>
<div id=\"videoGuideDetailsSidebarContent\">
{% include 'Slivki/sale/videoguide_sidebar_list.html.twig' %}
</div>
<div id=\"sidebarVideoguideLoader\"></div>
</div>
<div class=\"clear\"></div>
<input type=\"hidden\" id=\"stock-id\" value=\"{{ sale.getID() }}\">
<input type=\"hidden\" id=\"seenVideoguides\" value=\"{{ seenVideoguides }}\">
{% endblock %}
{% block assetsBottom %}
{{ parent() }}
<script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"/js/videoguide.js?v={{ videoguide_js_version }}\"></script>
{% endblock %}
{% block popups %}
{{ parent() }}
{% if not isMobileDevice() %}
{% if app.user %}
{% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
{% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
{% else %}
{% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
{% endif %}
{% endif %}
{% endblock %}", "Slivki/sale/videoguide.html.twig", "/mnt/data/virtwww/anna/templates/Slivki/sale/videoguide.html.twig");
}
}