<?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;
/* website/product/product-detail-banner-section.html.twig */
class __TwigTemplate_0f6a52cd43f3ce65144f94973c0916d035762dbbadeb2e1ac26e7d0575e332f7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "website/product/product-detail-banner-section.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/product/product-detail-banner-section.html.twig"));
// line 1
$macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"] = $this->macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"] = $this->loadTemplate("utils.html.twig", "website/product/product-detail-banner-section.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
$context["bannerTextColor"] = "";
// line 4
echo "
";
// line 5
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 5, $this->source); })()), "pageColorText", [], "any", false, false, false, 5)) || (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 5, $this->source); })()), "pageColorText", [], "any", false, false, false, 5), "null")))) {
// line 6
echo " ";
$context["bannerTextColor"] = ("color:" . twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 6, $this->source); })()), "pageColorText", [], "any", false, false, false, 6));
}
// line 8
echo "
<section class=\"product-banner\">
";
// line 12
echo " <div class=\"banner-img\">
";
// line 13
echo twig_call_macro($macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"], "macro_imgUpload", [twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 13, $this->source); })()), "cover", [], "any", false, false, false, 13), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_PRODUCT_COVER"), "product-cover", twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 13, $this->source); })()), "title", [], "any", false, false, false, 13)], 13, $context, $this->getSourceContext());
echo "
</div>
";
// line 17
echo " ";
$this->loadTemplate("website/product/product-detail-cover.html.twig", "website/product/product-detail-banner-section.html.twig", 17)->display(twig_array_merge($context, ["mode" => "mobile", "img_option" => "product-photo-detail-mobile"]));
// line 18
echo "
<div class=\"container\">
<section class=\"lateral-products product-banner-color product-banner-title\">
<h1 class=\"title\">";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 21, $this->source); })()), "title", [], "any", false, false, false, 21), "html", null, true);
echo "</h1>
<div class=\"info\">
";
// line 29
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 29, $this->source); })()), "description", [], "any", false, false, false, 29)) {
// line 30
echo " <div class=\"desc\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 30, $this->source); })()), "description", [], "any", false, false, false, 30);
echo "</div>
";
}
// line 32
echo "
";
// line 33
if ((((1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["scoreProduct"]) || array_key_exists("scoreProduct", $context) ? $context["scoreProduct"] : (function () { throw new RuntimeError('Variable "scoreProduct" does not exist.', 33, $this->source); })()), "scoreTotal", [], "any", false, false, false, 33), 9)) && twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 33, $this->source); })()), "showModuleTestimonials", [], "any", false, false, false, 33)) && (0 === twig_compare($this->extensions['EADPlataforma\Twig\FunctionsExtension']->getConfig("allow_testimonial"), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("CourseEnum::YES"))))) {
// line 34
echo " <div class=\"avaliacao\">
";
// line 36
$this->loadTemplate("website/includes/stars.html.twig", "website/product/product-detail-banner-section.html.twig", 36)->display(twig_array_merge($context, ["score" => twig_get_attribute($this->env, $this->source, (isset($context["scoreProduct"]) || array_key_exists("scoreProduct", $context) ? $context["scoreProduct"] : (function () { throw new RuntimeError('Variable "scoreProduct" does not exist.', 36, $this->source); })()), "score", [], "any", false, false, false, 36)]));
// line 37
echo "
<span class=\"total\">";
// line 38
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("based_on", "product"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["scoreProduct"]) || array_key_exists("scoreProduct", $context) ? $context["scoreProduct"] : (function () { throw new RuntimeError('Variable "scoreProduct" does not exist.', 38, $this->source); })()), "scoreTotal", [], "any", false, false, false, 38), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->plural(twig_get_attribute($this->env, $this->source, (isset($context["scoreProduct"]) || array_key_exists("scoreProduct", $context) ? $context["scoreProduct"] : (function () { throw new RuntimeError('Variable "scoreProduct" does not exist.', 38, $this->source); })()), "scoreTotal", [], "any", false, false, false, 38), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("evaluation", "product"), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("evaluations", "product")), "html", null, true);
echo "</span>
</div>
";
}
// line 41
echo "
<div class=\"tags-categorias\">
";
// line 43
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 43, $this->source); })()), "category", [], "any", false, false, false, 43));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 44
echo " <span class=\"tag\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "category", [], "any", false, false, false, 44), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo " </div>
</div>
<div class=\"actions\">
";
// line 51
echo " ";
if (( !$this->extensions['EADPlataforma\Twig\FunctionsExtension']->userHasProduct((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })())) && (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 51, $this->source); })()))) {
// line 52
echo " <button class=\"bookmark js--btn-wishlist ";
echo (($this->extensions['EADPlataforma\Twig\FunctionsExtension']->isInWhishlist(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 52, $this->source); })()), "id", [], "any", false, false, false, 52))) ? ("status--active") : (""));
echo "\"
data-product=\"";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 53, $this->source); })()), "id", [], "any", false, false, false, 53), "html", null, true);
echo "\"
data-offer=\"";
// line 54
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["productOffer"]) || array_key_exists("productOffer", $context) ? $context["productOffer"] : (function () { throw new RuntimeError('Variable "productOffer" does not exist.', 54, $this->source); })()), "id", [], "any", false, false, false, 54), "html", null, true);
echo "\"
data-title=\"";
// line 55
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 55, $this->source); })()), "title", [], "any", false, false, false, 55), "html", null, true);
echo "\"
data-price=\"";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["productOffer"]) || array_key_exists("productOffer", $context) ? $context["productOffer"] : (function () { throw new RuntimeError('Variable "productOffer" does not exist.', 56, $this->source); })()), "getPriceRealCopy", [], "method", false, false, false, 56), "html", null, true);
echo "\"
data-tooltip-text=\"";
// line 57
echo twig_escape_filter($this->env, (($this->extensions['EADPlataforma\Twig\FunctionsExtension']->isInWhishlist(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 57, $this->source); })()), "id", [], "any", false, false, false, 57))) ? ($this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("remove_from_wish_list", "user_resume")) : ($this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("add_to_wish_list", "user_resume"))), "html", null, true);
echo "\"
data-tooltip-class=\"tooltip-wish\">
<span class=\"ico\">
<i class=\"heart\">";
// line 60
echo twig_call_macro($macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"], "macro_ico", ["heart"], 60, $context, $this->getSourceContext());
echo "</i>
<i class=\"loader\">";
// line 61
echo twig_call_macro($macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"], "macro_ico", ["loader-wish"], 61, $context, $this->getSourceContext());
echo "</i>
</span>
<span class=\"label-off txt\">";
// line 63
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("favorite", "product"), "html", null, true);
echo "</span>
<span class=\"label-on txt\">";
// line 64
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("fav", "product"), "html", null, true);
echo "</span>
</button>
";
}
// line 67
echo "
";
// line 69
echo " ";
$context["paths"] = [$this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductEnum::COURSE") => "productDetailCourse", $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductEnum::COMBO") => "productDetailCombo", $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductEnum::SUBSCRIPTION") => "productDetailPlan"];
// line 74
echo "
";
// line 75
$context["shareLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, (isset($context["paths"]) || array_key_exists("paths", $context) ? $context["paths"] : (function () { throw new RuntimeError('Variable "paths" does not exist.', 75, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 75, $this->source); })()), "type", [], "any", false, false, false, 75), [], "array", false, false, false, 75), ["type" => twig_get_attribute($this->env, $this->source, // line 76
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 76, $this->source); })()), "getProductTypeText", [], "method", false, false, false, 76), "slug" => twig_get_attribute($this->env, $this->source, // line 77
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 77, $this->source); })()), "productLink", [], "any", false, false, false, 77)]);
// line 79
echo "
";
// line 80
$context["productPhoto"] = null;
echo "
";
// line 82
if (twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 82, $this->source); })()), "photo", [], "any", false, false, false, 82)) {
// line 83
echo " ";
$context["pathImage"] = $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getFilePathComplete(["fileName" => twig_get_attribute($this->env, $this->source, // line 84
(isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 84, $this->source); })()), "photo", [], "any", false, false, false, 84), "pathConst" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_PRODUCT_PHOTO"), "option" => "", "addUpload" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::YES")]);
// line 88
echo "
";
// line 89
$context["productPhoto"] = twig_get_attribute($this->env, $this->source, (isset($context["pathImage"]) || array_key_exists("pathImage", $context) ? $context["pathImage"] : (function () { throw new RuntimeError('Variable "pathImage" does not exist.', 89, $this->source); })()), "pathCdn", [], "any", false, false, false, 89);
echo "
";
}
// line 91
echo "
<button class=\"share js--share-modal\"
data-share-url=\"";
// line 93
echo twig_escape_filter($this->env, (isset($context["shareLink"]) || array_key_exists("shareLink", $context) ? $context["shareLink"] : (function () { throw new RuntimeError('Variable "shareLink" does not exist.', 93, $this->source); })()), "html", null, true);
echo "\"
data-share-title=\"";
// line 94
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 94, $this->source); })()), "productLink", [], "any", false, false, false, 94), "html", null, true);
echo "\"
data-share-photo=\"";
// line 95
echo twig_escape_filter($this->env, (isset($context["productPhoto"]) || array_key_exists("productPhoto", $context) ? $context["productPhoto"] : (function () { throw new RuntimeError('Variable "productPhoto" does not exist.', 95, $this->source); })()), "html", null, true);
echo "\">
<i class=\"ico\">";
// line 96
echo twig_call_macro($macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"], "macro_ico", ["share"], 96, $context, $this->getSourceContext());
echo "</i>
<span class=\"txt\">";
// line 97
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("share", "product"), "html", null, true);
echo "</span>
</button>
</div>
</section>
";
// line 103
echo " ";
$this->loadTemplate("website/product/product-detail-features.html.twig", "website/product/product-detail-banner-section.html.twig", 103)->display($context);
// line 104
echo "
";
// line 106
echo " ";
$this->loadTemplate("website/product/product-detail-pricing.html.twig", "website/product/product-detail-banner-section.html.twig", 106)->display($context);
// line 107
echo "
";
// line 108
if ((1 === twig_compare((isset($context["saleLimitRemaining"]) || array_key_exists("saleLimitRemaining", $context) ? $context["saleLimitRemaining"] : (function () { throw new RuntimeError('Variable "saleLimitRemaining" does not exist.', 108, $this->source); })()), 0))) {
// line 109
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["productOffer"]) || array_key_exists("productOffer", $context) ? $context["productOffer"] : (function () { throw new RuntimeError('Variable "productOffer" does not exist.', 109, $this->source); })()), "getSaleIsOpen", [], "method", false, false, false, 109)) {
// line 110
echo " ";
// line 111
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["productOffer"]) || array_key_exists("productOffer", $context) ? $context["productOffer"] : (function () { throw new RuntimeError('Variable "productOffer" does not exist.', 111, $this->source); })()), "allowTrial", [], "any", false, false, false, 111) && !$this->extensions['EADPlataforma\Twig\FunctionsExtension']->userHasProduct(twig_get_attribute($this->env, $this->source, (isset($context["productOffer"]) || array_key_exists("productOffer", $context) ? $context["productOffer"] : (function () { throw new RuntimeError('Variable "productOffer" does not exist.', 111, $this->source); })()), "product", [], "any", false, false, false, 111), true))) {
// line 112
echo " <p class=\"trial\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("free_access_by", "product"), "html", null, true);
echo " <b>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["productOffer"]) || array_key_exists("productOffer", $context) ? $context["productOffer"] : (function () { throw new RuntimeError('Variable "productOffer" does not exist.', 112, $this->source); })()), "trialPeriod", [], "any", false, false, false, 112), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("days", "product"), "html", null, true);
echo "</b></p>
";
}
// line 114
echo "
";
// line 116
echo " ";
$this->loadTemplate("website/product/product-detail-discountdown.html.twig", "website/product/product-detail-banner-section.html.twig", 116)->display($context);
// line 117
echo "
";
// line 119
echo " ";
if ((0 === twig_compare((isset($context["saleLimitRemaining"]) || array_key_exists("saleLimitRemaining", $context) ? $context["saleLimitRemaining"] : (function () { throw new RuntimeError('Variable "saleLimitRemaining" does not exist.', 119, $this->source); })()), 1))) {
// line 120
echo " <p class=\"sale-limit\"><b>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("remains", "product"), "html", null, true);
echo "
";
// line 121
echo twig_escape_filter($this->env, (isset($context["saleLimitRemaining"]) || array_key_exists("saleLimitRemaining", $context) ? $context["saleLimitRemaining"] : (function () { throw new RuntimeError('Variable "saleLimitRemaining" does not exist.', 121, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("vacancy", "product"), "html", null, true);
echo "</b></p>
";
} else {
// line 123
echo " <p class=\"sale-limit\"><b>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("remain", "product"), "html", null, true);
echo "
";
// line 124
echo twig_escape_filter($this->env, (isset($context["saleLimitRemaining"]) || array_key_exists("saleLimitRemaining", $context) ? $context["saleLimitRemaining"] : (function () { throw new RuntimeError('Variable "saleLimitRemaining" does not exist.', 124, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("vacancies", "product"), "html", null, true);
echo "</b></p>
";
}
// line 126
echo " ";
}
// line 127
echo " ";
}
// line 128
echo "
";
// line 130
echo " ";
$this->loadTemplate("website/product/product-detail-installment-one.html.twig", "website/product/product-detail-banner-section.html.twig", 130)->display($context);
// line 131
echo "
";
// line 133
echo " <div class=\"actions-banner\">
<div class=\"btn-box-product-detail\" data-status=\"";
// line 134
echo (((isset($context["isInCart"]) || array_key_exists("isInCart", $context) ? $context["isInCart"] : (function () { throw new RuntimeError('Variable "isInCart" does not exist.', 134, $this->source); })())) ? ("") : ("add"));
echo "\">
";
// line 135
$this->loadTemplate("website/product/product-detail-actions-btn-box.html.twig", "website/product/product-detail-banner-section.html.twig", 135)->display($context);
// line 136
echo " </div>
</div>
";
// line 140
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["infoOffer"]) || array_key_exists("infoOffer", $context) ? $context["infoOffer"] : (function () { throw new RuntimeError('Variable "infoOffer" does not exist.', 140, $this->source); })()), "allowBuyNow", [], "any", false, false, false, 140) && !twig_get_attribute($this->env, $this->source, (isset($context["infoOffer"]) || array_key_exists("infoOffer", $context) ? $context["infoOffer"] : (function () { throw new RuntimeError('Variable "infoOffer" does not exist.', 140, $this->source); })()), "userHasProduct", [], "any", false, false, false, 140)) && twig_get_attribute($this->env, $this->source, (isset($context["productPage"]) || array_key_exists("productPage", $context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.', 140, $this->source); })()), "showModuleCoupon", [], "any", false, false, false, 140))) {
// line 141
echo " <div class=\"coupom-banner section-coupom\" data-status=\"";
echo (((isset($context["isInCart"]) || array_key_exists("isInCart", $context) ? $context["isInCart"] : (function () { throw new RuntimeError('Variable "isInCart" does not exist.', 141, $this->source); })())) ? ("") : ("on"));
echo "\">
";
// line 142
$this->loadTemplate("website/product/product-detail-coupom.html.twig", "website/product/product-detail-banner-section.html.twig", 142)->display($context);
// line 143
echo " </div>
";
}
// line 145
echo " </div>
</section>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "website/product/product-detail-banner-section.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 365 => 145, 361 => 143, 359 => 142, 354 => 141, 351 => 140, 346 => 136, 344 => 135, 340 => 134, 337 => 133, 334 => 131, 331 => 130, 328 => 128, 325 => 127, 322 => 126, 315 => 124, 310 => 123, 303 => 121, 298 => 120, 295 => 119, 292 => 117, 289 => 116, 286 => 114, 276 => 112, 273 => 111, 271 => 110, 268 => 109, 266 => 108, 263 => 107, 260 => 106, 257 => 104, 254 => 103, 246 => 97, 242 => 96, 238 => 95, 234 => 94, 230 => 93, 226 => 91, 221 => 89, 218 => 88, 216 => 84, 214 => 83, 212 => 82, 207 => 80, 204 => 79, 202 => 77, 201 => 76, 200 => 75, 197 => 74, 194 => 69, 191 => 67, 185 => 64, 181 => 63, 176 => 61, 172 => 60, 166 => 57, 162 => 56, 158 => 55, 154 => 54, 150 => 53, 145 => 52, 142 => 51, 136 => 46, 127 => 44, 123 => 43, 119 => 41, 109 => 38, 106 => 37, 104 => 36, 100 => 34, 98 => 33, 95 => 32, 89 => 30, 86 => 29, 81 => 21, 76 => 18, 73 => 17, 67 => 13, 64 => 12, 59 => 8, 55 => 6, 53 => 5, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import ico, imgUpload %}
{% set bannerTextColor = '' %}
{% if (productPage.pageColorText is not null) or (productPage.pageColorText != 'null') %}
{% set bannerTextColor = \"color:#{productPage.pageColorText}\" %}
{% endif %}
<section class=\"product-banner\">
{# BANNER #}
<div class=\"banner-img\">
{{ imgUpload(productPage.cover, enum('AbstractEnum::PATH_PRODUCT_COVER'), 'product-cover', product.title) }}
</div>
{# COVER #}
{% include 'website/product/product-detail-cover.html.twig' with { mode:'mobile', img_option: 'product-photo-detail-mobile' }%}
<div class=\"container\">
<section class=\"lateral-products product-banner-color product-banner-title\">
<h1 class=\"title\">{{ product.title }}</h1>
<div class=\"info\">
{#
<div class=\"tags-destaque\">
<span>{{ getLanguage('best_sellers', 'home') }}</span>
</div>
??? !!!*
#}
{% if productPage.description %}
<div class=\"desc\">{{ productPage.description|raw }}</div>
{% endif %}
{% if (scoreProduct.scoreTotal > 9) and productPage.showModuleTestimonials and getConfig('allow_testimonial') == enum('CourseEnum::YES') %}
<div class=\"avaliacao\">
{% include 'website/includes/stars.html.twig' with { score: scoreProduct.score }%}
<span class=\"total\">{{ getLanguage('based_on', 'product') }} {{ scoreProduct.scoreTotal }} {{ plural(scoreProduct.scoreTotal, getLanguage('evaluation', 'product'), getLanguage('evaluations', 'product')) }}</span>
</div>
{% endif %}
<div class=\"tags-categorias\">
{% for item in product.category %}
<span class=\"tag\">{{ item.category }}</span>
{% endfor %}
</div>
</div>
<div class=\"actions\">
{# WISHLIST #}
{% if not userHasProduct(product) and user %}
<button class=\"bookmark js--btn-wishlist {{ isInWhishlist(product.id)? 'status--active' }}\"
data-product=\"{{ product.id }}\"
data-offer=\"{{ productOffer.id }}\"
data-title=\"{{ product.title }}\"
data-price=\"{{ productOffer.getPriceRealCopy() }}\"
data-tooltip-text=\"{{ isInWhishlist(product.id)? getLanguage('remove_from_wish_list', 'user_resume') : getLanguage('add_to_wish_list', 'user_resume') }}\"
data-tooltip-class=\"tooltip-wish\">
<span class=\"ico\">
<i class=\"heart\">{{ ico('heart') }}</i>
<i class=\"loader\">{{ ico('loader-wish') }}</i>
</span>
<span class=\"label-off txt\">{{ getLanguage('favorite', 'product') }}</span>
<span class=\"label-on txt\">{{ getLanguage('fav', 'product') }}</span>
</button>
{% endif %}
{# SHARE #}
{% set paths = {
(enum('ProductEnum::COURSE')): 'productDetailCourse',
(enum('ProductEnum::COMBO')): 'productDetailCombo',
(enum('ProductEnum::SUBSCRIPTION')): 'productDetailPlan'
} %}
{% set shareLink = url(paths[product.type], {
type: product.getProductTypeText(),
slug: product.productLink })
%}
{% set productPhoto = null %}
{% if productPage.photo %}
{% set pathImage = getFilePathComplete({
fileName: productPage.photo,
pathConst: enum('AbstractEnum::PATH_PRODUCT_PHOTO'),
option: '',
addUpload: enum('AbstractEnum::YES')
}) %}
{% set productPhoto = pathImage.pathCdn %}
{% endif %}
<button class=\"share js--share-modal\"
data-share-url=\"{{ shareLink }}\"
data-share-title=\"{{ product.productLink }}\"
data-share-photo=\"{{ productPhoto }}\">
<i class=\"ico\">{{ ico('share') }}</i>
<span class=\"txt\">{{ getLanguage('share', 'product') }}</span>
</button>
</div>
</section>
{# FEATURES #}
{% include 'website/product/product-detail-features.html.twig' %}
{# PRICING #}
{% include 'website/product/product-detail-pricing.html.twig' %}
{% if saleLimitRemaining > 0 %}
{% if productOffer.getSaleIsOpen() %}
{# FREE TRIAL #}
{% if productOffer.allowTrial and not userHasProduct(productOffer.product, true) %}
<p class=\"trial\">{{ getLanguage('free_access_by', 'product') }} <b>{{ productOffer.trialPeriod }} {{ getLanguage('days', 'product') }}</b></p>
{% endif %}
{# DISCOUNT AND COUNTDOWN #}
{% include 'website/product/product-detail-discountdown.html.twig' %}
{# SALE LIMIT #}
{% if saleLimitRemaining == 1 %}
<p class=\"sale-limit\"><b>{{ getLanguage('remains', 'product') }}
{{ saleLimitRemaining }} {{ getLanguage('vacancy', 'product') }}</b></p>
{% else %}
<p class=\"sale-limit\"><b>{{ getLanguage('remain', 'product') }}
{{ saleLimitRemaining }} {{ getLanguage('vacancies', 'product') }}</b></p>
{% endif %}
{% endif %}
{% endif %}
{# INÍCIO OU FECHAMENTO DA VENDA #}
{% include 'website/product/product-detail-installment-one.html.twig' %}
{# BUTTON BOX #}
<div class=\"actions-banner\">
<div class=\"btn-box-product-detail\" data-status=\"{{ isInCart ? '' : 'add' }}\">
{% include 'website/product/product-detail-actions-btn-box.html.twig' %}
</div>
</div>
{# COUPOM #}
{% if infoOffer.allowBuyNow and not infoOffer.userHasProduct and productPage.showModuleCoupon %}
<div class=\"coupom-banner section-coupom\" data-status=\"{{ isInCart ? '' : 'on' }}\">
{% include 'website/product/product-detail-coupom.html.twig' %}
</div>
{% endif %}
</div>
</section>
", "website/product/product-detail-banner-section.html.twig", "/var/www/html/templates/website/product/product-detail-banner-section.html.twig");
}
}