var/cache/dev/twig/ef/ef33b64887b1ff73494268cc7ef2a702cbf742d519760e89a9e23db567ee340a.php line 33

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. /* website/product/product-detail-banner-section.html.twig */
  14. class __TwigTemplate_0f6a52cd43f3ce65144f94973c0916d035762dbbadeb2e1ac26e7d0575e332f7 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-detail-banner-section.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-detail-banner-section.html.twig"));
  33.         // line 1
  34.         $macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"] = $this->macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"] = $this->loadTemplate("utils.html.twig""website/product/product-detail-banner-section.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["bannerTextColor"] = "";
  40.         // line 4
  41.         echo "
  42. ";
  43.         // line 5
  44.         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"falsefalsefalse5)) || (!== 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"falsefalsefalse5), "null")))) {
  45.             // line 6
  46.             echo "    ";
  47.             $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"falsefalsefalse6));
  48.         }
  49.         // line 8
  50.         echo "
  51. <section class=\"product-banner\">
  52.     ";
  53.         // line 12
  54.         echo "    <div class=\"banner-img\">
  55.         ";
  56.         // line 13
  57.         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"falsefalsefalse13), $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"falsefalsefalse13)], 13$context$this->getSourceContext());
  58.         echo "
  59.     </div>
  60.     ";
  61.         // line 17
  62.         echo "    ";
  63.         $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"]));
  64.         // line 18
  65.         echo "
  66.     <div class=\"container\">
  67.         <section class=\"lateral-products product-banner-color product-banner-title\">
  68.             <h1 class=\"title\">";
  69.         // line 21
  70.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse21), "html"nulltrue);
  71.         echo "</h1>
  72.             <div class=\"info\">
  73.                 ";
  74.         // line 29
  75.         echo "                ";
  76.         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"falsefalsefalse29)) {
  77.             // line 30
  78.             echo "                    <div class=\"desc\">";
  79.             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"falsefalsefalse30);
  80.             echo "</div>
  81.                 ";
  82.         }
  83.         // line 32
  84.         echo "
  85.                 ";
  86.         // line 33
  87.         if ((((=== 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"falsefalsefalse33), 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"falsefalsefalse33)) && (=== twig_compare($this->extensions['EADPlataforma\Twig\FunctionsExtension']->getConfig("allow_testimonial"), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("CourseEnum::YES"))))) {
  88.             // line 34
  89.             echo "                    <div class=\"avaliacao\">
  90.                         ";
  91.             // line 36
  92.             $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"falsefalsefalse36)]));
  93.             // line 37
  94.             echo "
  95.                         <span class=\"total\">";
  96.             // line 38
  97.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("based_on""product"), "html"nulltrue);
  98.             echo " ";
  99.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse38), "html"nulltrue);
  100.             echo " ";
  101.             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"falsefalsefalse38), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("evaluation""product"), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("evaluations""product")), "html"nulltrue);
  102.             echo "</span>
  103.                     </div>
  104.                 ";
  105.         }
  106.         // line 41
  107.         echo "
  108.                 <div class=\"tags-categorias\">
  109.                     ";
  110.         // line 43
  111.         $context['_parent'] = $context;
  112.         $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"falsefalsefalse43));
  113.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  114.             // line 44
  115.             echo "                        <span class=\"tag\">";
  116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "category", [], "any"falsefalsefalse44), "html"nulltrue);
  117.             echo "</span>
  118.                     ";
  119.         }
  120.         $_parent $context['_parent'];
  121.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  122.         $context array_intersect_key($context$_parent) + $_parent;
  123.         // line 46
  124.         echo "                </div>
  125.             </div>
  126.             <div class=\"actions\">
  127.                 ";
  128.         // line 51
  129.         echo "                ";
  130.         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); })()))) {
  131.             // line 52
  132.             echo "                    <button class=\"bookmark js--btn-wishlist ";
  133.             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"falsefalsefalse52))) ? ("status--active") : (""));
  134.             echo "\"
  135.                         data-product=\"";
  136.             // line 53
  137.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse53), "html"nulltrue);
  138.             echo "\"
  139.                         data-offer=\"";
  140.             // line 54
  141.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse54), "html"nulltrue);
  142.             echo "\"
  143.                         data-title=\"";
  144.             // line 55
  145.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse55), "html"nulltrue);
  146.             echo "\"
  147.                         data-price=\"";
  148.             // line 56
  149.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse56), "html"nulltrue);
  150.             echo "\"
  151.                         data-tooltip-text=\"";
  152.             // line 57
  153.             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"falsefalsefalse57))) ? ($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"nulltrue);
  154.             echo "\"
  155.                         data-tooltip-class=\"tooltip-wish\">
  156.                         <span class=\"ico\">
  157.                             <i class=\"heart\">";
  158.             // line 60
  159.             echo twig_call_macro($macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"], "macro_ico", ["heart"], 60$context$this->getSourceContext());
  160.             echo "</i>
  161.                             <i class=\"loader\">";
  162.             // line 61
  163.             echo twig_call_macro($macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"], "macro_ico", ["loader-wish"], 61$context$this->getSourceContext());
  164.             echo "</i>
  165.                         </span>
  166.                         <span class=\"label-off txt\">";
  167.             // line 63
  168.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("favorite""product"), "html"nulltrue);
  169.             echo "</span>
  170.                         <span class=\"label-on txt\">";
  171.             // line 64
  172.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("fav""product"), "html"nulltrue);
  173.             echo "</span>
  174.                     </button>
  175.                 ";
  176.         }
  177.         // line 67
  178.         echo "
  179.                 ";
  180.         // line 69
  181.         echo "                ";
  182.         $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"];
  183.         // line 74
  184.         echo "
  185.                 ";
  186.         // line 75
  187.         $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"falsefalsefalse75), [], "array"falsefalsefalse75), ["type" => twig_get_attribute($this->env$this->source,         // line 76
  188. (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'76$this->source); })()), "getProductTypeText", [], "method"falsefalsefalse76), "slug" => twig_get_attribute($this->env$this->source,         // line 77
  189. (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'77$this->source); })()), "productLink", [], "any"falsefalsefalse77)]);
  190.         // line 79
  191.         echo "
  192.                 ";
  193.         // line 80
  194.         $context["productPhoto"] = null;
  195.         echo "  
  196.                 ";
  197.         // line 82
  198.         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"falsefalsefalse82)) {
  199.             // line 83
  200.             echo "                    ";
  201.             $context["pathImage"] = $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getFilePathComplete(["fileName" => twig_get_attribute($this->env$this->source,             // line 84
  202. (isset($context["productPage"]) || array_key_exists("productPage"$context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.'84$this->source); })()), "photo", [], "any"falsefalsefalse84), "pathConst" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_PRODUCT_PHOTO"), "option" => """addUpload" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::YES")]);
  203.             // line 88
  204.             echo 
  205.                     ";
  206.             // line 89
  207.             $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"falsefalsefalse89);
  208.             echo "     
  209.                 ";
  210.         }
  211.         // line 91
  212.         echo "
  213.                 <button class=\"share js--share-modal\"
  214.                     data-share-url=\"";
  215.         // line 93
  216.         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"nulltrue);
  217.         echo "\"
  218.                     data-share-title=\"";
  219.         // line 94
  220.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse94), "html"nulltrue);
  221.         echo "\"
  222.                     data-share-photo=\"";
  223.         // line 95
  224.         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"nulltrue);
  225.         echo "\">
  226.                     <i class=\"ico\">";
  227.         // line 96
  228.         echo twig_call_macro($macros["__internal_a94e61403bf71a0b52313c006c0f0fa283da93e53b712efb306ca17801d91a57"], "macro_ico", ["share"], 96$context$this->getSourceContext());
  229.         echo "</i>
  230.                     <span class=\"txt\">";
  231.         // line 97
  232.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("share""product"), "html"nulltrue);
  233.         echo "</span>
  234.                 </button>
  235.             </div>
  236.         </section>
  237.         ";
  238.         // line 103
  239.         echo "        ";
  240.         $this->loadTemplate("website/product/product-detail-features.html.twig""website/product/product-detail-banner-section.html.twig"103)->display($context);
  241.         // line 104
  242.         echo "
  243.         ";
  244.         // line 106
  245.         echo "        ";
  246.         $this->loadTemplate("website/product/product-detail-pricing.html.twig""website/product/product-detail-banner-section.html.twig"106)->display($context);
  247.         // line 107
  248.         echo "
  249.         ";
  250.         // line 108
  251.         if ((=== 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))) {
  252.             // line 109
  253.             echo "            ";
  254.             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"falsefalsefalse109)) {
  255.                 // line 110
  256.                 echo "                ";
  257.                 // line 111
  258.                 echo "                ";
  259.                 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"falsefalsefalse111) &&  !$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"falsefalsefalse111), true))) {
  260.                     // line 112
  261.                     echo "                    <p class=\"trial\">";
  262.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("free_access_by""product"), "html"nulltrue);
  263.                     echo " <b>";
  264.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse112), "html"nulltrue);
  265.                     echo " ";
  266.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("days""product"), "html"nulltrue);
  267.                     echo "</b></p>
  268.                 ";
  269.                 }
  270.                 // line 114
  271.                 echo "
  272.                 ";
  273.                 // line 116
  274.                 echo "                ";
  275.                 $this->loadTemplate("website/product/product-detail-discountdown.html.twig""website/product/product-detail-banner-section.html.twig"116)->display($context);
  276.                 // line 117
  277.                 echo "
  278.                 ";
  279.                 // line 119
  280.                 echo "                ";
  281.                 if ((=== 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))) {
  282.                     // line 120
  283.                     echo "                    <p class=\"sale-limit\"><b>";
  284.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("remains""product"), "html"nulltrue);
  285.                     echo 
  286.                     ";
  287.                     // line 121
  288.                     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"nulltrue);
  289.                     echo " ";
  290.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("vacancy""product"), "html"nulltrue);
  291.                     echo "</b></p>
  292.                 ";
  293.                 } else {
  294.                     // line 123
  295.                     echo "                    <p class=\"sale-limit\"><b>";
  296.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("remain""product"), "html"nulltrue);
  297.                     echo 
  298.                     ";
  299.                     // line 124
  300.                     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"nulltrue);
  301.                     echo " ";
  302.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("vacancies""product"), "html"nulltrue);
  303.                     echo "</b></p>
  304.                 ";
  305.                 }
  306.                 // line 126
  307.                 echo "            ";
  308.             }
  309.             // line 127
  310.             echo "        ";
  311.         }
  312.         // line 128
  313.         echo "
  314.         ";
  315.         // line 130
  316.         echo "        ";
  317.         $this->loadTemplate("website/product/product-detail-installment-one.html.twig""website/product/product-detail-banner-section.html.twig"130)->display($context);
  318.         // line 131
  319.         echo "
  320.         ";
  321.         // line 133
  322.         echo "        <div class=\"actions-banner\">
  323.             <div class=\"btn-box-product-detail\" data-status=\"";
  324.         // line 134
  325.         echo (((isset($context["isInCart"]) || array_key_exists("isInCart"$context) ? $context["isInCart"] : (function () { throw new RuntimeError('Variable "isInCart" does not exist.'134$this->source); })())) ? ("") : ("add"));
  326.         echo "\">
  327.                 ";
  328.         // line 135
  329.         $this->loadTemplate("website/product/product-detail-actions-btn-box.html.twig""website/product/product-detail-banner-section.html.twig"135)->display($context);
  330.         // line 136
  331.         echo "            </div>
  332.         </div>
  333.         ";
  334.         // line 140
  335.         echo "        ";
  336.         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"falsefalsefalse140) &&  !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"falsefalsefalse140)) && 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"falsefalsefalse140))) {
  337.             // line 141
  338.             echo "            <div class=\"coupom-banner section-coupom\" data-status=\"";
  339.             echo (((isset($context["isInCart"]) || array_key_exists("isInCart"$context) ? $context["isInCart"] : (function () { throw new RuntimeError('Variable "isInCart" does not exist.'141$this->source); })())) ? ("") : ("on"));
  340.             echo "\">
  341.                 ";
  342.             // line 142
  343.             $this->loadTemplate("website/product/product-detail-coupom.html.twig""website/product/product-detail-banner-section.html.twig"142)->display($context);
  344.             // line 143
  345.             echo "            </div>
  346.         ";
  347.         }
  348.         // line 145
  349.         echo "    </div>
  350. </section>
  351. ";
  352.         
  353.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  354.         
  355.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  356.     }
  357.     public function getTemplateName()
  358.     {
  359.         return "website/product/product-detail-banner-section.html.twig";
  360.     }
  361.     public function isTraitable()
  362.     {
  363.         return false;
  364.     }
  365.     public function getDebugInfo()
  366.     {
  367.         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,);
  368.     }
  369.     public function getSourceContext()
  370.     {
  371.         return new Source("{% from 'utils.html.twig' import ico, imgUpload %}
  372. {% set bannerTextColor = '' %}
  373. {% if (productPage.pageColorText is not null) or (productPage.pageColorText != 'null') %}
  374.     {% set bannerTextColor = \"color:#{productPage.pageColorText}\" %}
  375. {% endif %}
  376. <section class=\"product-banner\">
  377.     {# BANNER #}
  378.     <div class=\"banner-img\">
  379.         {{ imgUpload(productPage.cover, enum('AbstractEnum::PATH_PRODUCT_COVER'), 'product-cover', product.title) }}
  380.     </div>
  381.     {# COVER #}
  382.     {% include 'website/product/product-detail-cover.html.twig' with { mode:'mobile', img_option: 'product-photo-detail-mobile' }%}
  383.     <div class=\"container\">
  384.         <section class=\"lateral-products product-banner-color product-banner-title\">
  385.             <h1 class=\"title\">{{ product.title }}</h1>
  386.             <div class=\"info\">
  387.                 {#
  388.                 <div class=\"tags-destaque\">
  389.                     <span>{{ getLanguage('best_sellers', 'home') }}</span>
  390.                 </div>
  391.                 ??? !!!*
  392.                 #}
  393.                 {% if productPage.description %}
  394.                     <div class=\"desc\">{{ productPage.description|raw }}</div>
  395.                 {% endif %}
  396.                 {% if (scoreProduct.scoreTotal > 9) and productPage.showModuleTestimonials and getConfig('allow_testimonial') == enum('CourseEnum::YES') %}
  397.                     <div class=\"avaliacao\">
  398.                         {% include 'website/includes/stars.html.twig' with { score: scoreProduct.score }%}
  399.                         <span class=\"total\">{{ getLanguage('based_on', 'product') }} {{ scoreProduct.scoreTotal }} {{ plural(scoreProduct.scoreTotal, getLanguage('evaluation', 'product'), getLanguage('evaluations', 'product')) }}</span>
  400.                     </div>
  401.                 {% endif %}
  402.                 <div class=\"tags-categorias\">
  403.                     {% for item in product.category %}
  404.                         <span class=\"tag\">{{ item.category }}</span>
  405.                     {% endfor %}
  406.                 </div>
  407.             </div>
  408.             <div class=\"actions\">
  409.                 {# WISHLIST #}
  410.                 {% if not userHasProduct(product) and user %}
  411.                     <button class=\"bookmark js--btn-wishlist {{ isInWhishlist(product.id)? 'status--active' }}\"
  412.                         data-product=\"{{ product.id }}\"
  413.                         data-offer=\"{{ productOffer.id }}\"
  414.                         data-title=\"{{ product.title }}\"
  415.                         data-price=\"{{ productOffer.getPriceRealCopy() }}\"
  416.                         data-tooltip-text=\"{{ isInWhishlist(product.id)? getLanguage('remove_from_wish_list', 'user_resume') : getLanguage('add_to_wish_list', 'user_resume') }}\"
  417.                         data-tooltip-class=\"tooltip-wish\">
  418.                         <span class=\"ico\">
  419.                             <i class=\"heart\">{{ ico('heart') }}</i>
  420.                             <i class=\"loader\">{{ ico('loader-wish') }}</i>
  421.                         </span>
  422.                         <span class=\"label-off txt\">{{ getLanguage('favorite', 'product') }}</span>
  423.                         <span class=\"label-on txt\">{{ getLanguage('fav', 'product') }}</span>
  424.                     </button>
  425.                 {% endif %}
  426.                 {# SHARE #}
  427.                 {% set paths = {
  428.                     (enum('ProductEnum::COURSE')):       'productDetailCourse',
  429.                     (enum('ProductEnum::COMBO')):        'productDetailCombo',
  430.                     (enum('ProductEnum::SUBSCRIPTION')): 'productDetailPlan'
  431.                 } %}
  432.                 {% set shareLink = url(paths[product.type], {
  433.                     type: product.getProductTypeText(),
  434.                     slug: product.productLink })
  435.                 %}
  436.                 {% set productPhoto = null %}  
  437.                 {% if productPage.photo %}
  438.                     {% set pathImage = getFilePathComplete({
  439.                         fileName:  productPage.photo,
  440.                         pathConst: enum('AbstractEnum::PATH_PRODUCT_PHOTO'),
  441.                         option:    '',
  442.                         addUpload: enum('AbstractEnum::YES')
  443.                     }) %} 
  444.                     {% set productPhoto = pathImage.pathCdn %}     
  445.                 {% endif %}
  446.                 <button class=\"share js--share-modal\"
  447.                     data-share-url=\"{{ shareLink }}\"
  448.                     data-share-title=\"{{ product.productLink }}\"
  449.                     data-share-photo=\"{{ productPhoto }}\">
  450.                     <i class=\"ico\">{{ ico('share') }}</i>
  451.                     <span class=\"txt\">{{ getLanguage('share', 'product') }}</span>
  452.                 </button>
  453.             </div>
  454.         </section>
  455.         {# FEATURES #}
  456.         {% include 'website/product/product-detail-features.html.twig' %}
  457.         {# PRICING #}
  458.         {% include 'website/product/product-detail-pricing.html.twig' %}
  459.         {% if saleLimitRemaining > 0 %}
  460.             {% if productOffer.getSaleIsOpen() %}
  461.                 {# FREE TRIAL #}
  462.                 {% if productOffer.allowTrial and not userHasProduct(productOffer.product, true) %}
  463.                     <p class=\"trial\">{{ getLanguage('free_access_by', 'product') }} <b>{{ productOffer.trialPeriod }} {{ getLanguage('days', 'product') }}</b></p>
  464.                 {% endif %}
  465.                 {# DISCOUNT AND COUNTDOWN #}
  466.                 {% include 'website/product/product-detail-discountdown.html.twig' %}
  467.                 {# SALE LIMIT #}
  468.                 {% if saleLimitRemaining == 1 %}
  469.                     <p class=\"sale-limit\"><b>{{ getLanguage('remains', 'product') }} 
  470.                     {{ saleLimitRemaining }} {{ getLanguage('vacancy', 'product') }}</b></p>
  471.                 {% else %}
  472.                     <p class=\"sale-limit\"><b>{{ getLanguage('remain', 'product') }} 
  473.                     {{ saleLimitRemaining }} {{ getLanguage('vacancies', 'product') }}</b></p>
  474.                 {% endif %}
  475.             {% endif %}
  476.         {% endif %}
  477.         {# INÍCIO OU FECHAMENTO DA VENDA #}
  478.         {% include 'website/product/product-detail-installment-one.html.twig' %}
  479.         {# BUTTON BOX #}
  480.         <div class=\"actions-banner\">
  481.             <div class=\"btn-box-product-detail\" data-status=\"{{ isInCart ? '' : 'add' }}\">
  482.                 {% include 'website/product/product-detail-actions-btn-box.html.twig' %}
  483.             </div>
  484.         </div>
  485.         {# COUPOM #}
  486.         {% if infoOffer.allowBuyNow and not infoOffer.userHasProduct and productPage.showModuleCoupon %}
  487.             <div class=\"coupom-banner section-coupom\" data-status=\"{{ isInCart ? '' : 'on' }}\">
  488.                 {% include 'website/product/product-detail-coupom.html.twig' %}
  489.             </div>
  490.         {% endif %}
  491.     </div>
  492. </section>
  493. ""website/product/product-detail-banner-section.html.twig""/var/www/html/templates/website/product/product-detail-banner-section.html.twig");
  494.     }
  495. }