var/cache/dev/twig/75/75f9d60eb0dd73d41f9ea6703c15a2a4afb51bdb4d3a02e7ff294b261dd164f6.php line 39

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-results.html.twig */
  14. class __TwigTemplate_47d5e1d1556dbdf583cdf2c157d32fae63fec25687ff796025b06e5c75d345ca extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'category_css' => [$this'block_category_css'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "website/main.template.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-results.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-results.html.twig"));
  39.         // line 2
  40.         $macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"] = $this->macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"] = $this->loadTemplate("utils.html.twig""website/product/product-results.html.twig"2)->unwrap();
  41.         // line 1
  42.         $this->parent $this->loadTemplate("website/main.template.html.twig""website/product/product-results.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 4
  50.     public function block_category_css($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""category_css"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""category_css"));
  57.         // line 5
  58.         echo "\t";
  59.         if (array_key_exists("category"$context)) {
  60.             // line 6
  61.             echo "    \t";
  62.             $this->loadTemplate("website/includes/css-category.html.twig""website/product/product-results.html.twig"6)->display($context);
  63.             // line 7
  64.             echo "\t";
  65.         }
  66.         
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.     }
  71.     // line 10
  72.     public function block_body($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  79.         // line 11
  80.         echo "
  81. \t";
  82.         // line 12
  83.         $this->loadTemplate("website/includes/search-section.html.twig""website/product/product-results.html.twig"12)->display($context);
  84.         // line 13
  85.         echo "
  86. \t";
  87.         // line 15
  88.         echo "\t";
  89.         if (array_key_exists("category"$context)) {
  90.             // line 16
  91.             echo "
  92. \t\t";
  93.             // line 18
  94.             echo "\t\t";
  95.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18))) {
  96.                 // line 19
  97.                 echo "
  98. \t\t\t<section class=\"category-banner\">
  99. \t\t\t    ";
  100.                 // line 23
  101.                 echo "\t\t\t    <div class=\"banner-img\">
  102. \t\t\t        ";
  103.                 // line 24
  104.                 echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_imgUpload", [twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'24$this->source); })()), "image", [], "any"falsefalsefalse24), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_OTHERS"), "category-cover"twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'24$this->source); })()), "category", [], "any"falsefalsefalse24)], 24$context$this->getSourceContext());
  105.                 echo "
  106. \t\t\t    </div>
  107. \t\t\t    <div class=\"container\">
  108. \t\t\t    \t<div class=\"wrap category-banner-color\">
  109. \t\t\t            <h1 class=\"title\">";
  110.                 // line 29
  111.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'29$this->source); })()), "category", [], "any"falsefalsefalse29), "html"nulltrue);
  112.                 echo "</h1>
  113. \t\t\t\t\t\t<nav class=\"migalhas\">
  114. \t\t\t\t\t\t\t<a href=\"";
  115.                 // line 31
  116.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  117.                 echo "\">";
  118.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home""product"), "html"nulltrue);
  119.                 echo "</a>&ensp;/&ensp;
  120. \t\t\t\t\t\t\t<a href=\"";
  121.                 // line 32
  122.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  123.                 echo "#categories-container\">";
  124.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("categories""product"), "html"nulltrue);
  125.                 echo "</a>&ensp;/&ensp;
  126. \t\t\t\t\t\t\t<span>";
  127.                 // line 33
  128.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'33$this->source); })()), "category", [], "any"falsefalsefalse33), "html"nulltrue);
  129.                 echo "</span>
  130. \t\t\t\t\t\t</nav>
  131. \t\t                ";
  132.                 // line 35
  133.                 if (twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'35$this->source); })()), "description", [], "any"falsefalsefalse35)) {
  134.                     // line 36
  135.                     echo "\t\t                    <div class=\"desc\">";
  136.                     echo twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'36$this->source); })()), "description", [], "any"falsefalsefalse36);
  137.                     echo "</div>
  138. \t\t                ";
  139.                 }
  140.                 // line 38
  141.                 echo "\t\t\t    \t</div>
  142. \t\t\t    </div>
  143. \t\t\t</section>\t\t\t
  144. \t\t";
  145.                 // line 43
  146.                 echo "\t\t";
  147.             } else {
  148.                 // line 44
  149.                 echo "\t\t\t";
  150.                 $this->loadTemplate("website/product/product-results.html.twig""website/product/product-results.html.twig"44"1779319862")->display(twig_array_merge($context, ["pageTitle" => twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'44$this->source); })()), "category", [], "any"falsefalsefalse44)]));
  151.                 // line 51
  152.                 echo "\t\t";
  153.             }
  154.             // line 52
  155.             echo "
  156.     ";
  157.             // line 54
  158.             echo "    ";
  159.         } elseif (array_key_exists("search"$context)) {
  160.             // line 55
  161.             echo "
  162. \t\t";
  163.             // line 56
  164.             $context["emptySearch"] = (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'56$this->source); })());
  165.             // line 57
  166.             echo "\t\t";
  167.             $this->loadTemplate("website/product/product-results.html.twig""website/product/product-results.html.twig"57"126531758")->display($context);
  168.             // line 65
  169.             echo "\t";
  170.         }
  171.         // line 66
  172.         echo "
  173. \t";
  174.         // line 68
  175.         echo "\t";
  176.         if ((array_key_exists("productCoupon"$context) && (isset($context["productCoupon"]) || array_key_exists("productCoupon"$context) ? $context["productCoupon"] : (function () { throw new RuntimeError('Variable "productCoupon" does not exist.'68$this->source); })()))) {
  177.             // line 69
  178.             echo "\t\t<div class=\"coupon-success coupon-category\">
  179.             <p>
  180.                 ";
  181.             // line 71
  182.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("coupon_code""product"), "html"nulltrue);
  183.             echo "
  184.                 <strong>";
  185.             // line 72
  186.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["productCoupon"]) || array_key_exists("productCoupon"$context) ? $context["productCoupon"] : (function () { throw new RuntimeError('Variable "productCoupon" does not exist.'72$this->source); })()), "key", [], "any"falsefalsefalse72), "html"nulltrue);
  187.             echo "</strong>
  188.                 ";
  189.             // line 73
  190.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("successfully_applied""product"), "html"nulltrue);
  191.             echo ".
  192.             </p>
  193.         </div>
  194. \t";
  195.         }
  196.         // line 77
  197.         echo "
  198. \t<div class=\"";
  199.         // line 78
  200.         echo (((isset($context["hasResult"]) || array_key_exists("hasResult"$context) ? $context["hasResult"] : (function () { throw new RuntimeError('Variable "hasResult" does not exist.'78$this->source); })())) ? ("bg-alt") : (""));
  201.         echo "\">
  202. \t\t<div class=\"container\">
  203. \t\t\t<div class=\"results\">
  204. \t\t\t\t";
  205.         // line 82
  206.         echo "\t\t\t\t";
  207.         if ((isset($context["hasResult"]) || array_key_exists("hasResult"$context) ? $context["hasResult"] : (function () { throw new RuntimeError('Variable "hasResult" does not exist.'82$this->source); })())) {
  208.             // line 83
  209.             echo "\t\t\t\t\t";
  210.             $context["firstShow"] = 6;
  211.             // line 84
  212.             echo "\t\t\t\t\t";
  213.             $context['_parent'] = $context;
  214.             $context['_seq'] = twig_ensure_traversable((isset($context["dataSearch"]) || array_key_exists("dataSearch"$context) ? $context["dataSearch"] : (function () { throw new RuntimeError('Variable "dataSearch" does not exist.'84$this->source); })()));
  215.             $context['loop'] = [
  216.               'parent' => $context['_parent'],
  217.               'index0' => 0,
  218.               'index'  => 1,
  219.               'first'  => true,
  220.             ];
  221.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  222.                 $length count($context['_seq']);
  223.                 $context['loop']['revindex0'] = $length 1;
  224.                 $context['loop']['revindex'] = $length;
  225.                 $context['loop']['length'] = $length;
  226.                 $context['loop']['last'] = === $length;
  227.             }
  228.             foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  229.                 // line 85
  230.                 echo "\t\t\t\t\t\t";
  231.                 $context["secLabel"] = twig_lower_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "name", [], "any"falsefalsefalse85));
  232.                 // line 86
  233.                 echo "\t\t\t\t\t\t";
  234.                 if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "items", [], "any"falsefalsefalse86)), 0))) {
  235.                     // line 87
  236.                     echo "\t\t\t\t\t\t\t<section class=\"js--results-section\"
  237. \t\t\t\t\t\t\t\tdata-status=\"initial\"
  238. \t\t\t\t\t\t\t\tdata-route=\"";
  239.                     // line 89
  240.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("productListSearchOrder", ["couponKey" => (((                    // line 91
  241. array_key_exists("productCoupon"$context) && (isset($context["productCoupon"]) || array_key_exists("productCoupon"$context) ? $context["productCoupon"] : (function () { throw new RuntimeError('Variable "productCoupon" does not exist.'91$this->source); })()))) ? (twig_get_attribute($this->env$this->source, (isset($context["productCoupon"]) || array_key_exists("productCoupon"$context) ? $context["productCoupon"] : (function () { throw new RuntimeError('Variable "productCoupon" does not exist.'91$this->source); })()), "key", [], "any"falsefalsefalse91)) : (""))]), "html"nulltrue);
  242.                     // line 93
  243.                     echo "\"
  244. \t\t\t\t\t\t\t\tdata-tipo=\"";
  245.                     // line 94
  246.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "enum", [], "any"falsefalsefalse94), "html"nulltrue);
  247.                     echo "\"
  248. \t\t\t\t\t\t\t\tdata-search=\"";
  249.                     // line 95
  250.                     echo twig_escape_filter($this->env, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'95$this->source); })()), "html"nulltrue);
  251.                     echo "\"
  252. \t\t\t\t\t\t\t\tdata-label=\"";
  253.                     // line 96
  254.                     echo twig_escape_filter($this->env, (isset($context["secLabel"]) || array_key_exists("secLabel"$context) ? $context["secLabel"] : (function () { throw new RuntimeError('Variable "secLabel" does not exist.'96$this->source); })()), "html"nulltrue);
  255.                     echo "\"
  256. \t\t\t\t\t\t\t\tdata-init-offset=\"";
  257.                     // line 97
  258.                     echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "items", [], "any"falsefalsefalse97)), "html"nulltrue);
  259.                     echo "\"
  260. \t\t\t\t\t\t\t\tdata-total=\"";
  261.                     // line 98
  262.                     (((twig_get_attribute($this->env$this->source$context["section"], "total", [], "any"truetruefalse98) &&  !(null === twig_get_attribute($this->env$this->source$context["section"], "total", [], "any"falsefalsefalse98)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "total", [], "any"falsefalsefalse98), "html"nulltrue))) : (print ("")));
  263.                     echo "\"
  264. \t\t\t\t\t\t\t\tdata-category=\"";
  265.                     // line 99
  266.                     ((array_key_exists("category"$context)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'99$this->source); })()), "id", [], "any"falsefalsefalse99), "html"nulltrue))) : (print ("")));
  267.                     echo "\">
  268. \t\t\t\t\t\t\t\t<header>
  269. \t\t\t\t\t\t\t\t\t<h2>";
  270.                     // line 101
  271.                     echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", [twig_get_attribute($this->env$this->source$context["section"], "ico", [], "any"falsefalsefalse101)], 101$context$this->getSourceContext());
  272.                     echo " ";
  273.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "name", [], "any"falsefalsefalse101), "html"nulltrue);
  274.                     echo " (";
  275.                     (((twig_get_attribute($this->env$this->source$context["section"], "total", [], "any"truetruefalse101) &&  !(null === twig_get_attribute($this->env$this->source$context["section"], "total", [], "any"falsefalsefalse101)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "total", [], "any"falsefalsefalse101), "html"nulltrue))) : (print ("")));
  276.                     echo ")</h2>
  277. \t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
  278. \t\t\t\t\t\t\t\t\t\t<i class=\"loader\">";
  279.                     // line 103
  280.                     echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", ["loader-wish"], 103$context$this->getSourceContext());
  281.                     echo "</i>
  282. \t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
  283. \t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  284.                     // line 105
  285.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::ORDER_BY"), "html"nulltrue);
  286.                     echo "\">
  287. \t\t\t\t\t\t\t\t\t\t\t\t";
  288.                     // line 106
  289.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("order_by""product"), "html"nulltrue);
  290.                     echo "
  291. \t\t\t\t\t\t\t\t\t\t\t</option>
  292. \t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  293.                     // line 108
  294.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::LOWEST_PRICE"), "html"nulltrue);
  295.                     echo "\">
  296. \t\t\t\t\t\t\t\t\t\t\t\t";
  297.                     // line 109
  298.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("lowest_price""product"), "html"nulltrue);
  299.                     echo "
  300. \t\t\t\t\t\t\t\t\t\t\t</option>
  301. \t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  302.                     // line 111
  303.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::BIGGEST_PRICE"), "html"nulltrue);
  304.                     echo "\">
  305. \t\t\t\t\t\t\t\t\t\t\t\t";
  306.                     // line 112
  307.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("biggest_price""product"), "html"nulltrue);
  308.                     echo "
  309. \t\t\t\t\t\t\t\t\t\t\t</option>
  310. \t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  311.                     // line 114
  312.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::MOST_RELEVANT"), "html"nulltrue);
  313.                     echo "\">
  314. \t\t\t\t\t\t\t\t\t\t\t\t";
  315.                     // line 115
  316.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("most_relevant""product"), "html"nulltrue);
  317.                     echo "
  318. \t\t\t\t\t\t\t\t\t\t\t</option>
  319. \t\t\t\t\t\t\t\t\t\t</select>
  320. \t\t\t\t\t\t\t\t\t</div>
  321. \t\t\t\t\t\t\t\t</header>
  322. \t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
  323. \t\t\t\t\t\t\t\t\t";
  324.                     // line 121
  325.                     $this->loadTemplate("website/product/product-results-items.html.twig""website/product/product-results.html.twig"121)->display(twig_array_merge($context, ["items" => twig_get_attribute($this->env$this->source$context["section"], "items", [], "any"falsefalsefalse121)]));
  326.                     // line 122
  327.                     echo "\t\t\t\t\t\t\t\t</div>
  328. \t\t\t\t\t\t\t\t<div class=\"content-loader\">
  329. \t\t\t\t\t\t\t\t\t<i class=\"loader\">";
  330.                     // line 124
  331.                     echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", ["loader-wish"], 124$context$this->getSourceContext());
  332.                     echo "</i>
  333. \t\t\t\t\t\t\t\t</div>
  334. \t\t\t\t\t\t\t\t<div class=\"todos\">
  335. \t\t\t\t\t\t\t\t\t";
  336.                     // line 127
  337.                     if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["section"], "total", [], "any"falsefalsefalse127), (isset($context["firstShow"]) || array_key_exists("firstShow"$context) ? $context["firstShow"] : (function () { throw new RuntimeError('Variable "firstShow" does not exist.'127$this->source); })())))) {
  338.                         // line 128
  339.                         echo "\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"";
  340.                         echo twig_escape_filter($this->env, (isset($context["secLabel"]) || array_key_exists("secLabel"$context) ? $context["secLabel"] : (function () { throw new RuntimeError('Variable "secLabel" does not exist.'128$this->source); })()), "html"nulltrue);
  341.                         echo "\">
  342. \t\t\t\t\t\t\t\t\t\t\t<span>";
  343.                         // line 129
  344.                         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("loading""util"), "html"nulltrue);
  345.                         echo " &hellip;</span>
  346. \t\t\t\t\t\t\t\t\t\t\t<span>";
  347.                         // line 130
  348.                         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("see_more""product"), "html"nulltrue);
  349.                         echo "</span>
  350. \t\t\t\t\t\t\t\t\t\t</button>
  351. \t\t\t\t\t\t\t\t\t";
  352.                     }
  353.                     // line 133
  354.                     echo "\t\t\t\t\t\t\t\t</div>
  355. \t\t\t\t\t\t\t</section>
  356. \t\t\t\t\t\t";
  357.                 }
  358.                 // line 136
  359.                 echo "\t\t\t\t\t";
  360.                 ++$context['loop']['index0'];
  361.                 ++$context['loop']['index'];
  362.                 $context['loop']['first'] = false;
  363.                 if (isset($context['loop']['length'])) {
  364.                     --$context['loop']['revindex0'];
  365.                     --$context['loop']['revindex'];
  366.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  367.                 }
  368.             }
  369.             $_parent $context['_parent'];
  370.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  371.             $context array_intersect_key($context$_parent) + $_parent;
  372.             // line 137
  373.             echo "
  374. \t\t\t\t";
  375.             // line 139
  376.             echo "\t\t\t\t";
  377.         } else {
  378.             // line 140
  379.             echo "\t\t\t\t    <div class=\"box-aviso\">
  380. \t\t\t\t    \t<div class=\"aviso-img\">
  381. \t\t\t\t    \t\t<div class=\"img-ico\">
  382. \t\t\t\t\t\t\t\t";
  383.             // line 143
  384.             echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", ["no-results"], 143$context$this->getSourceContext());
  385.             echo "
  386. \t\t\t\t    \t\t</div>
  387. \t\t\t\t    \t</div>
  388. \t\t\t\t        <h2 class=\"titulo-aviso\">
  389. \t\t\t\t        \t<span>
  390. \t\t\t\t        \t\t";
  391.             // line 148
  392.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("not_find""product"), "html"nulltrue);
  393.             echo " ";
  394.             echo twig_escape_filter($this->env, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'148$this->source); })()), "html"nulltrue);
  395.             echo " &hellip;&ensp;
  396. \t\t\t\t        \t</span>
  397. \t\t\t\t        \t<img src=\"";
  398.             // line 150
  399.             echo twig_escape_filter($this->env, (isset($context["cdn"]) || array_key_exists("cdn"$context) ? $context["cdn"] : (function () { throw new RuntimeError('Variable "cdn" does not exist.'150$this->source); })()), "html"nulltrue);
  400.             echo "img/emoji_crying.png\">
  401. \t\t\t\t        </h2>
  402. \t\t\t\t        <p class=\"sub\">";
  403.             // line 152
  404.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("check_if_word""product"), "html"nulltrue);
  405.             echo "</p>
  406. \t\t\t\t        <a href=\"";
  407.             // line 153
  408.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  409.             echo "\" class=\"btn-acao\">
  410. \t\t\t\t        \t<i class=\"fas fa-arrow-left ico-left\"></i>
  411. \t\t\t\t        \t";
  412.             // line 155
  413.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("back_to_home""product"), "html"nulltrue);
  414.             echo "
  415. \t\t\t\t        </a>
  416. \t\t\t\t    </div>
  417. \t\t\t\t";
  418.         }
  419.         // line 160
  420.         echo "\t\t\t</div>
  421. \t\t</div>
  422. \t</div>
  423. \t
  424. ";
  425.         
  426.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  427.         
  428.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  429.     }
  430.     public function getTemplateName()
  431.     {
  432.         return "website/product/product-results.html.twig";
  433.     }
  434.     public function isTraitable()
  435.     {
  436.         return false;
  437.     }
  438.     public function getDebugInfo()
  439.     {
  440.         return array (  443 => 160,  435 => 155,  430 => 153,  426 => 152,  421 => 150,  414 => 148,  406 => 143,  401 => 140,  398 => 139,  395 => 137,  381 => 136,  376 => 133,  370 => 130,  366 => 129,  361 => 128,  359 => 127,  353 => 124,  349 => 122,  347 => 121,  338 => 115,  334 => 114,  329 => 112,  325 => 111,  320 => 109,  316 => 108,  311 => 106,  307 => 105,  302 => 103,  293 => 101,  288 => 99,  284 => 98,  280 => 97,  276 => 96,  272 => 95,  268 => 94,  265 => 93,  263 => 91,  262 => 89,  258 => 87,  255 => 86,  252 => 85,  234 => 84,  231 => 83,  228 => 82,  222 => 78,  219 => 77,  212 => 73,  208 => 72,  204 => 71,  200 => 69,  197 => 68,  194 => 66,  191 => 65,  188 => 57,  186 => 56,  183 => 55,  180 => 54,  177 => 52,  174 => 51,  171 => 44,  168 => 43,  162 => 38,  156 => 36,  154 => 35,  149 => 33,  143 => 32,  137 => 31,  132 => 29,  124 => 24,  121 => 23,  116 => 19,  113 => 18,  110 => 16,  107 => 15,  104 => 13,  102 => 12,  99 => 11,  89 => 10,  78 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 1,  49 => 2,  36 => 1,);
  441.     }
  442.     public function getSourceContext()
  443.     {
  444.         return new Source("{% extends 'website/main.template.html.twig' %}
  445. {% from 'utils.html.twig' import ico, imgUpload %}
  446. {% block category_css %}
  447. \t{% if category is defined %}
  448.     \t{% include 'website/includes/css-category.html.twig' %}
  449. \t{% endif %}
  450. {% endblock %}
  451. {% block body %}
  452. \t{% include 'website/includes/search-section.html.twig' %}
  453. \t{# TITLE - CATEGORIES #}
  454. \t{% if category is defined %}
  455. \t\t{# TITLE - CATEGORIES - IMAGE #}
  456. \t\t{% if category.image is not null %}
  457. \t\t\t<section class=\"category-banner\">
  458. \t\t\t    {# BANNER #}
  459. \t\t\t    <div class=\"banner-img\">
  460. \t\t\t        {{ imgUpload(category.image, enum('AbstractEnum::PATH_OTHERS'), 'category-cover', category.category) }}
  461. \t\t\t    </div>
  462. \t\t\t    <div class=\"container\">
  463. \t\t\t    \t<div class=\"wrap category-banner-color\">
  464. \t\t\t            <h1 class=\"title\">{{ category.category }}</h1>
  465. \t\t\t\t\t\t<nav class=\"migalhas\">
  466. \t\t\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;
  467. \t\t\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a>&ensp;/&ensp;
  468. \t\t\t\t\t\t\t<span>{{ category.category }}</span>
  469. \t\t\t\t\t\t</nav>
  470. \t\t                {% if category.description %}
  471. \t\t                    <div class=\"desc\">{{ category.description|raw }}</div>
  472. \t\t                {% endif %}
  473. \t\t\t    \t</div>
  474. \t\t\t    </div>
  475. \t\t\t</section>\t\t\t
  476. \t\t{# TITLE - CATEGORIES - NO IMAGE #}
  477. \t\t{% else %}
  478. \t\t\t{% embed 'website/includes/page-title.html.twig' with { pageTitle: category.category }%}
  479. \t\t\t\t{% block migalhas %}
  480. \t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;
  481. \t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a>&ensp;/&ensp;
  482. \t\t\t\t\t<span>{{ category.category }}</span>
  483. \t\t\t\t{% endblock %}
  484. \t\t\t{% endembed %}
  485. \t\t{% endif %}
  486.     {# TITLE - SEARCH STRING #}
  487.     {% elseif search is defined %}
  488. \t\t{% set emptySearch = search %}
  489. \t\t{% embed 'website/includes/page-title.html.twig' %}
  490.         \t{% block header %}
  491. \t\t\t\t<h1>{{ getLanguage('results_for', 'product') }} <em>“{{ search }}”</em></h1>
  492.         \t{% endblock %}
  493.         \t{% block migalhas %}
  494. \t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;<span>{{ getLanguage('search_results', 'product') }}</span>
  495.         \t{% endblock %}
  496.     \t{% endembed %}
  497. \t{% endif %}
  498. \t{# COUPON #}
  499. \t{% if productCoupon is defined and productCoupon %}
  500. \t\t<div class=\"coupon-success coupon-category\">
  501.             <p>
  502.                 {{ getLanguage('coupon_code', 'product') }}
  503.                 <strong>{{ productCoupon.key  }}</strong>
  504.                 {{ getLanguage('successfully_applied', 'product') }}.
  505.             </p>
  506.         </div>
  507. \t{% endif %}
  508. \t<div class=\"{{ hasResult ? 'bg-alt' }}\">
  509. \t\t<div class=\"container\">
  510. \t\t\t<div class=\"results\">
  511. \t\t\t\t{# CONTEM ITENS #}
  512. \t\t\t\t{% if hasResult %}
  513. \t\t\t\t\t{% set firstShow = 6 %}
  514. \t\t\t\t\t{% for section in dataSearch %}
  515. \t\t\t\t\t\t{% set secLabel = section.name|lower %}
  516. \t\t\t\t\t\t{% if section.items|length > 0 %}
  517. \t\t\t\t\t\t\t<section class=\"js--results-section\"
  518. \t\t\t\t\t\t\t\tdata-status=\"initial\"
  519. \t\t\t\t\t\t\t\tdata-route=\"{{
  520. \t\t\t\t\t\t\t\t\tpath('productListSearchOrder', { 
  521. \t\t\t\t\t\t\t\t\t\tcouponKey: (productCoupon is defined and productCoupon ? productCoupon.key : '')
  522. \t\t\t\t\t\t\t\t\t}) 
  523. \t\t\t\t\t\t\t\t}}\"
  524. \t\t\t\t\t\t\t\tdata-tipo=\"{{ section.enum }}\"
  525. \t\t\t\t\t\t\t\tdata-search=\"{{ search }}\"
  526. \t\t\t\t\t\t\t\tdata-label=\"{{ secLabel }}\"
  527. \t\t\t\t\t\t\t\tdata-init-offset=\"{{ section.items|length }}\"
  528. \t\t\t\t\t\t\t\tdata-total=\"{{ section.total ?? '' }}\"
  529. \t\t\t\t\t\t\t\tdata-category=\"{{ (category is defined)? category.id }}\">
  530. \t\t\t\t\t\t\t\t<header>
  531. \t\t\t\t\t\t\t\t\t<h2>{{ ico(section.ico) }} {{ section.name }} ({{ section.total ?? '' }})</h2>
  532. \t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
  533. \t\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
  534. \t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
  535. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::ORDER_BY') }}\">
  536. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('order_by', 'product') }}
  537. \t\t\t\t\t\t\t\t\t\t\t</option>
  538. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::LOWEST_PRICE') }}\">
  539. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('lowest_price', 'product') }}
  540. \t\t\t\t\t\t\t\t\t\t\t</option>
  541. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::BIGGEST_PRICE') }}\">
  542. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('biggest_price', 'product') }}
  543. \t\t\t\t\t\t\t\t\t\t\t</option>
  544. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::MOST_RELEVANT') }}\">
  545. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('most_relevant', 'product') }}
  546. \t\t\t\t\t\t\t\t\t\t\t</option>
  547. \t\t\t\t\t\t\t\t\t\t</select>
  548. \t\t\t\t\t\t\t\t\t</div>
  549. \t\t\t\t\t\t\t\t</header>
  550. \t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
  551. \t\t\t\t\t\t\t\t\t{% include 'website/product/product-results-items.html.twig' with {'items': section.items } %}
  552. \t\t\t\t\t\t\t\t</div>
  553. \t\t\t\t\t\t\t\t<div class=\"content-loader\">
  554. \t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
  555. \t\t\t\t\t\t\t\t</div>
  556. \t\t\t\t\t\t\t\t<div class=\"todos\">
  557. \t\t\t\t\t\t\t\t\t{% if section.total > firstShow %}
  558. \t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"{{ secLabel }}\">
  559. \t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('loading', 'util') }} &hellip;</span>
  560. \t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('see_more', 'product') }}</span>
  561. \t\t\t\t\t\t\t\t\t\t</button>
  562. \t\t\t\t\t\t\t\t\t{% endif %}
  563. \t\t\t\t\t\t\t\t</div>
  564. \t\t\t\t\t\t\t</section>
  565. \t\t\t\t\t\t{% endif %}
  566. \t\t\t\t\t{% endfor %}
  567. \t\t\t\t{# VAZIO #}
  568. \t\t\t\t{% else %}
  569. \t\t\t\t    <div class=\"box-aviso\">
  570. \t\t\t\t    \t<div class=\"aviso-img\">
  571. \t\t\t\t    \t\t<div class=\"img-ico\">
  572. \t\t\t\t\t\t\t\t{{ ico('no-results') }}
  573. \t\t\t\t    \t\t</div>
  574. \t\t\t\t    \t</div>
  575. \t\t\t\t        <h2 class=\"titulo-aviso\">
  576. \t\t\t\t        \t<span>
  577. \t\t\t\t        \t\t{{ getLanguage('not_find', 'product') }} {{ search }} &hellip;&ensp;
  578. \t\t\t\t        \t</span>
  579. \t\t\t\t        \t<img src=\"{{ cdn }}img/emoji_crying.png\">
  580. \t\t\t\t        </h2>
  581. \t\t\t\t        <p class=\"sub\">{{ getLanguage('check_if_word', 'product') }}</p>
  582. \t\t\t\t        <a href=\"{{ path('home') }}\" class=\"btn-acao\">
  583. \t\t\t\t        \t<i class=\"fas fa-arrow-left ico-left\"></i>
  584. \t\t\t\t        \t{{ getLanguage('back_to_home', 'product') }}
  585. \t\t\t\t        </a>
  586. \t\t\t\t    </div>
  587. \t\t\t\t{% endif %}
  588. \t\t\t</div>
  589. \t\t</div>
  590. \t</div>
  591. \t
  592. {% endblock %}
  593. ""website/product/product-results.html.twig""/var/www/html/templates/website/product/product-results.html.twig");
  594.     }
  595. }
  596. /* website/product/product-results.html.twig */
  597. class __TwigTemplate_47d5e1d1556dbdf583cdf2c157d32fae63fec25687ff796025b06e5c75d345ca___1779319862 extends Template
  598. {
  599.     private $source;
  600.     private $macros = [];
  601.     public function __construct(Environment $env)
  602.     {
  603.         parent::__construct($env);
  604.         $this->source $this->getSourceContext();
  605.         $this->blocks = [
  606.             'migalhas' => [$this'block_migalhas'],
  607.         ];
  608.     }
  609.     protected function doGetParent(array $context)
  610.     {
  611.         // line 44
  612.         return "website/includes/page-title.html.twig";
  613.     }
  614.     protected function doDisplay(array $context, array $blocks = [])
  615.     {
  616.         $macros $this->macros;
  617.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  618.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-results.html.twig"));
  619.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  620.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-results.html.twig"));
  621.         $this->parent $this->loadTemplate("website/includes/page-title.html.twig""website/product/product-results.html.twig"44);
  622.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  623.         
  624.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  625.         
  626.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  627.     }
  628.     // line 45
  629.     public function block_migalhas($context, array $blocks = [])
  630.     {
  631.         $macros $this->macros;
  632.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  633.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  634.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  635.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  636.         // line 46
  637.         echo "\t\t\t\t\t<a href=\"";
  638.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  639.         echo "\">";
  640.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home""product"), "html"nulltrue);
  641.         echo "</a>&ensp;/&ensp;
  642. \t\t\t\t\t<a href=\"";
  643.         // line 47
  644.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  645.         echo "#categories-container\">";
  646.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("categories""product"), "html"nulltrue);
  647.         echo "</a>&ensp;/&ensp;
  648. \t\t\t\t\t<span>";
  649.         // line 48
  650.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'48$this->source); })()), "category", [], "any"falsefalsefalse48), "html"nulltrue);
  651.         echo "</span>
  652. \t\t\t\t";
  653.         
  654.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  655.         
  656.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  657.     }
  658.     public function getTemplateName()
  659.     {
  660.         return "website/product/product-results.html.twig";
  661.     }
  662.     public function isTraitable()
  663.     {
  664.         return false;
  665.     }
  666.     public function getDebugInfo()
  667.     {
  668.         return array (  708 => 48,  702 => 47,  695 => 46,  685 => 45,  662 => 44,  443 => 160,  435 => 155,  430 => 153,  426 => 152,  421 => 150,  414 => 148,  406 => 143,  401 => 140,  398 => 139,  395 => 137,  381 => 136,  376 => 133,  370 => 130,  366 => 129,  361 => 128,  359 => 127,  353 => 124,  349 => 122,  347 => 121,  338 => 115,  334 => 114,  329 => 112,  325 => 111,  320 => 109,  316 => 108,  311 => 106,  307 => 105,  302 => 103,  293 => 101,  288 => 99,  284 => 98,  280 => 97,  276 => 96,  272 => 95,  268 => 94,  265 => 93,  263 => 91,  262 => 89,  258 => 87,  255 => 86,  252 => 85,  234 => 84,  231 => 83,  228 => 82,  222 => 78,  219 => 77,  212 => 73,  208 => 72,  204 => 71,  200 => 69,  197 => 68,  194 => 66,  191 => 65,  188 => 57,  186 => 56,  183 => 55,  180 => 54,  177 => 52,  174 => 51,  171 => 44,  168 => 43,  162 => 38,  156 => 36,  154 => 35,  149 => 33,  143 => 32,  137 => 31,  132 => 29,  124 => 24,  121 => 23,  116 => 19,  113 => 18,  110 => 16,  107 => 15,  104 => 13,  102 => 12,  99 => 11,  89 => 10,  78 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 1,  49 => 2,  36 => 1,);
  669.     }
  670.     public function getSourceContext()
  671.     {
  672.         return new Source("{% extends 'website/main.template.html.twig' %}
  673. {% from 'utils.html.twig' import ico, imgUpload %}
  674. {% block category_css %}
  675. \t{% if category is defined %}
  676.     \t{% include 'website/includes/css-category.html.twig' %}
  677. \t{% endif %}
  678. {% endblock %}
  679. {% block body %}
  680. \t{% include 'website/includes/search-section.html.twig' %}
  681. \t{# TITLE - CATEGORIES #}
  682. \t{% if category is defined %}
  683. \t\t{# TITLE - CATEGORIES - IMAGE #}
  684. \t\t{% if category.image is not null %}
  685. \t\t\t<section class=\"category-banner\">
  686. \t\t\t    {# BANNER #}
  687. \t\t\t    <div class=\"banner-img\">
  688. \t\t\t        {{ imgUpload(category.image, enum('AbstractEnum::PATH_OTHERS'), 'category-cover', category.category) }}
  689. \t\t\t    </div>
  690. \t\t\t    <div class=\"container\">
  691. \t\t\t    \t<div class=\"wrap category-banner-color\">
  692. \t\t\t            <h1 class=\"title\">{{ category.category }}</h1>
  693. \t\t\t\t\t\t<nav class=\"migalhas\">
  694. \t\t\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;
  695. \t\t\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a>&ensp;/&ensp;
  696. \t\t\t\t\t\t\t<span>{{ category.category }}</span>
  697. \t\t\t\t\t\t</nav>
  698. \t\t                {% if category.description %}
  699. \t\t                    <div class=\"desc\">{{ category.description|raw }}</div>
  700. \t\t                {% endif %}
  701. \t\t\t    \t</div>
  702. \t\t\t    </div>
  703. \t\t\t</section>\t\t\t
  704. \t\t{# TITLE - CATEGORIES - NO IMAGE #}
  705. \t\t{% else %}
  706. \t\t\t{% embed 'website/includes/page-title.html.twig' with { pageTitle: category.category }%}
  707. \t\t\t\t{% block migalhas %}
  708. \t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;
  709. \t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a>&ensp;/&ensp;
  710. \t\t\t\t\t<span>{{ category.category }}</span>
  711. \t\t\t\t{% endblock %}
  712. \t\t\t{% endembed %}
  713. \t\t{% endif %}
  714.     {# TITLE - SEARCH STRING #}
  715.     {% elseif search is defined %}
  716. \t\t{% set emptySearch = search %}
  717. \t\t{% embed 'website/includes/page-title.html.twig' %}
  718.         \t{% block header %}
  719. \t\t\t\t<h1>{{ getLanguage('results_for', 'product') }} <em>“{{ search }}”</em></h1>
  720.         \t{% endblock %}
  721.         \t{% block migalhas %}
  722. \t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;<span>{{ getLanguage('search_results', 'product') }}</span>
  723.         \t{% endblock %}
  724.     \t{% endembed %}
  725. \t{% endif %}
  726. \t{# COUPON #}
  727. \t{% if productCoupon is defined and productCoupon %}
  728. \t\t<div class=\"coupon-success coupon-category\">
  729.             <p>
  730.                 {{ getLanguage('coupon_code', 'product') }}
  731.                 <strong>{{ productCoupon.key  }}</strong>
  732.                 {{ getLanguage('successfully_applied', 'product') }}.
  733.             </p>
  734.         </div>
  735. \t{% endif %}
  736. \t<div class=\"{{ hasResult ? 'bg-alt' }}\">
  737. \t\t<div class=\"container\">
  738. \t\t\t<div class=\"results\">
  739. \t\t\t\t{# CONTEM ITENS #}
  740. \t\t\t\t{% if hasResult %}
  741. \t\t\t\t\t{% set firstShow = 6 %}
  742. \t\t\t\t\t{% for section in dataSearch %}
  743. \t\t\t\t\t\t{% set secLabel = section.name|lower %}
  744. \t\t\t\t\t\t{% if section.items|length > 0 %}
  745. \t\t\t\t\t\t\t<section class=\"js--results-section\"
  746. \t\t\t\t\t\t\t\tdata-status=\"initial\"
  747. \t\t\t\t\t\t\t\tdata-route=\"{{
  748. \t\t\t\t\t\t\t\t\tpath('productListSearchOrder', { 
  749. \t\t\t\t\t\t\t\t\t\tcouponKey: (productCoupon is defined and productCoupon ? productCoupon.key : '')
  750. \t\t\t\t\t\t\t\t\t}) 
  751. \t\t\t\t\t\t\t\t}}\"
  752. \t\t\t\t\t\t\t\tdata-tipo=\"{{ section.enum }}\"
  753. \t\t\t\t\t\t\t\tdata-search=\"{{ search }}\"
  754. \t\t\t\t\t\t\t\tdata-label=\"{{ secLabel }}\"
  755. \t\t\t\t\t\t\t\tdata-init-offset=\"{{ section.items|length }}\"
  756. \t\t\t\t\t\t\t\tdata-total=\"{{ section.total ?? '' }}\"
  757. \t\t\t\t\t\t\t\tdata-category=\"{{ (category is defined)? category.id }}\">
  758. \t\t\t\t\t\t\t\t<header>
  759. \t\t\t\t\t\t\t\t\t<h2>{{ ico(section.ico) }} {{ section.name }} ({{ section.total ?? '' }})</h2>
  760. \t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
  761. \t\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
  762. \t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
  763. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::ORDER_BY') }}\">
  764. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('order_by', 'product') }}
  765. \t\t\t\t\t\t\t\t\t\t\t</option>
  766. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::LOWEST_PRICE') }}\">
  767. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('lowest_price', 'product') }}
  768. \t\t\t\t\t\t\t\t\t\t\t</option>
  769. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::BIGGEST_PRICE') }}\">
  770. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('biggest_price', 'product') }}
  771. \t\t\t\t\t\t\t\t\t\t\t</option>
  772. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::MOST_RELEVANT') }}\">
  773. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('most_relevant', 'product') }}
  774. \t\t\t\t\t\t\t\t\t\t\t</option>
  775. \t\t\t\t\t\t\t\t\t\t</select>
  776. \t\t\t\t\t\t\t\t\t</div>
  777. \t\t\t\t\t\t\t\t</header>
  778. \t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
  779. \t\t\t\t\t\t\t\t\t{% include 'website/product/product-results-items.html.twig' with {'items': section.items } %}
  780. \t\t\t\t\t\t\t\t</div>
  781. \t\t\t\t\t\t\t\t<div class=\"content-loader\">
  782. \t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
  783. \t\t\t\t\t\t\t\t</div>
  784. \t\t\t\t\t\t\t\t<div class=\"todos\">
  785. \t\t\t\t\t\t\t\t\t{% if section.total > firstShow %}
  786. \t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"{{ secLabel }}\">
  787. \t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('loading', 'util') }} &hellip;</span>
  788. \t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('see_more', 'product') }}</span>
  789. \t\t\t\t\t\t\t\t\t\t</button>
  790. \t\t\t\t\t\t\t\t\t{% endif %}
  791. \t\t\t\t\t\t\t\t</div>
  792. \t\t\t\t\t\t\t</section>
  793. \t\t\t\t\t\t{% endif %}
  794. \t\t\t\t\t{% endfor %}
  795. \t\t\t\t{# VAZIO #}
  796. \t\t\t\t{% else %}
  797. \t\t\t\t    <div class=\"box-aviso\">
  798. \t\t\t\t    \t<div class=\"aviso-img\">
  799. \t\t\t\t    \t\t<div class=\"img-ico\">
  800. \t\t\t\t\t\t\t\t{{ ico('no-results') }}
  801. \t\t\t\t    \t\t</div>
  802. \t\t\t\t    \t</div>
  803. \t\t\t\t        <h2 class=\"titulo-aviso\">
  804. \t\t\t\t        \t<span>
  805. \t\t\t\t        \t\t{{ getLanguage('not_find', 'product') }} {{ search }} &hellip;&ensp;
  806. \t\t\t\t        \t</span>
  807. \t\t\t\t        \t<img src=\"{{ cdn }}img/emoji_crying.png\">
  808. \t\t\t\t        </h2>
  809. \t\t\t\t        <p class=\"sub\">{{ getLanguage('check_if_word', 'product') }}</p>
  810. \t\t\t\t        <a href=\"{{ path('home') }}\" class=\"btn-acao\">
  811. \t\t\t\t        \t<i class=\"fas fa-arrow-left ico-left\"></i>
  812. \t\t\t\t        \t{{ getLanguage('back_to_home', 'product') }}
  813. \t\t\t\t        </a>
  814. \t\t\t\t    </div>
  815. \t\t\t\t{% endif %}
  816. \t\t\t</div>
  817. \t\t</div>
  818. \t</div>
  819. \t
  820. {% endblock %}
  821. ""website/product/product-results.html.twig""/var/www/html/templates/website/product/product-results.html.twig");
  822.     }
  823. }
  824. /* website/product/product-results.html.twig */
  825. class __TwigTemplate_47d5e1d1556dbdf583cdf2c157d32fae63fec25687ff796025b06e5c75d345ca___126531758 extends Template
  826. {
  827.     private $source;
  828.     private $macros = [];
  829.     public function __construct(Environment $env)
  830.     {
  831.         parent::__construct($env);
  832.         $this->source $this->getSourceContext();
  833.         $this->blocks = [
  834.             'header' => [$this'block_header'],
  835.             'migalhas' => [$this'block_migalhas'],
  836.         ];
  837.     }
  838.     protected function doGetParent(array $context)
  839.     {
  840.         // line 57
  841.         return "website/includes/page-title.html.twig";
  842.     }
  843.     protected function doDisplay(array $context, array $blocks = [])
  844.     {
  845.         $macros $this->macros;
  846.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  847.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-results.html.twig"));
  848.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  849.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-results.html.twig"));
  850.         $this->parent $this->loadTemplate("website/includes/page-title.html.twig""website/product/product-results.html.twig"57);
  851.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  852.         
  853.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  854.         
  855.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  856.     }
  857.     // line 58
  858.     public function block_header($context, array $blocks = [])
  859.     {
  860.         $macros $this->macros;
  861.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  862.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  863.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  864.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  865.         // line 59
  866.         echo "\t\t\t\t<h1>";
  867.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("results_for""product"), "html"nulltrue);
  868.         echo " <em>“";
  869.         echo twig_escape_filter($this->env, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'59$this->source); })()), "html"nulltrue);
  870.         echo "”</em></h1>
  871.         \t";
  872.         
  873.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  874.         
  875.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  876.     }
  877.     // line 61
  878.     public function block_migalhas($context, array $blocks = [])
  879.     {
  880.         $macros $this->macros;
  881.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  882.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  883.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  884.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  885.         // line 62
  886.         echo "\t\t\t\t<a href=\"";
  887.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  888.         echo "\">";
  889.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home""product"), "html"nulltrue);
  890.         echo "</a>&ensp;/&ensp;<span>";
  891.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("search_results""product"), "html"nulltrue);
  892.         echo "</span>
  893.         \t";
  894.         
  895.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  896.         
  897.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  898.     }
  899.     public function getTemplateName()
  900.     {
  901.         return "website/product/product-results.html.twig";
  902.     }
  903.     public function isTraitable()
  904.     {
  905.         return false;
  906.     }
  907.     public function getDebugInfo()
  908.     {
  909.         return array (  984 => 62,  974 => 61,  959 => 59,  949 => 58,  926 => 57,  708 => 48,  702 => 47,  695 => 46,  685 => 45,  662 => 44,  443 => 160,  435 => 155,  430 => 153,  426 => 152,  421 => 150,  414 => 148,  406 => 143,  401 => 140,  398 => 139,  395 => 137,  381 => 136,  376 => 133,  370 => 130,  366 => 129,  361 => 128,  359 => 127,  353 => 124,  349 => 122,  347 => 121,  338 => 115,  334 => 114,  329 => 112,  325 => 111,  320 => 109,  316 => 108,  311 => 106,  307 => 105,  302 => 103,  293 => 101,  288 => 99,  284 => 98,  280 => 97,  276 => 96,  272 => 95,  268 => 94,  265 => 93,  263 => 91,  262 => 89,  258 => 87,  255 => 86,  252 => 85,  234 => 84,  231 => 83,  228 => 82,  222 => 78,  219 => 77,  212 => 73,  208 => 72,  204 => 71,  200 => 69,  197 => 68,  194 => 66,  191 => 65,  188 => 57,  186 => 56,  183 => 55,  180 => 54,  177 => 52,  174 => 51,  171 => 44,  168 => 43,  162 => 38,  156 => 36,  154 => 35,  149 => 33,  143 => 32,  137 => 31,  132 => 29,  124 => 24,  121 => 23,  116 => 19,  113 => 18,  110 => 16,  107 => 15,  104 => 13,  102 => 12,  99 => 11,  89 => 10,  78 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 1,  49 => 2,  36 => 1,);
  910.     }
  911.     public function getSourceContext()
  912.     {
  913.         return new Source("{% extends 'website/main.template.html.twig' %}
  914. {% from 'utils.html.twig' import ico, imgUpload %}
  915. {% block category_css %}
  916. \t{% if category is defined %}
  917.     \t{% include 'website/includes/css-category.html.twig' %}
  918. \t{% endif %}
  919. {% endblock %}
  920. {% block body %}
  921. \t{% include 'website/includes/search-section.html.twig' %}
  922. \t{# TITLE - CATEGORIES #}
  923. \t{% if category is defined %}
  924. \t\t{# TITLE - CATEGORIES - IMAGE #}
  925. \t\t{% if category.image is not null %}
  926. \t\t\t<section class=\"category-banner\">
  927. \t\t\t    {# BANNER #}
  928. \t\t\t    <div class=\"banner-img\">
  929. \t\t\t        {{ imgUpload(category.image, enum('AbstractEnum::PATH_OTHERS'), 'category-cover', category.category) }}
  930. \t\t\t    </div>
  931. \t\t\t    <div class=\"container\">
  932. \t\t\t    \t<div class=\"wrap category-banner-color\">
  933. \t\t\t            <h1 class=\"title\">{{ category.category }}</h1>
  934. \t\t\t\t\t\t<nav class=\"migalhas\">
  935. \t\t\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;
  936. \t\t\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a>&ensp;/&ensp;
  937. \t\t\t\t\t\t\t<span>{{ category.category }}</span>
  938. \t\t\t\t\t\t</nav>
  939. \t\t                {% if category.description %}
  940. \t\t                    <div class=\"desc\">{{ category.description|raw }}</div>
  941. \t\t                {% endif %}
  942. \t\t\t    \t</div>
  943. \t\t\t    </div>
  944. \t\t\t</section>\t\t\t
  945. \t\t{# TITLE - CATEGORIES - NO IMAGE #}
  946. \t\t{% else %}
  947. \t\t\t{% embed 'website/includes/page-title.html.twig' with { pageTitle: category.category }%}
  948. \t\t\t\t{% block migalhas %}
  949. \t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;
  950. \t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a>&ensp;/&ensp;
  951. \t\t\t\t\t<span>{{ category.category }}</span>
  952. \t\t\t\t{% endblock %}
  953. \t\t\t{% endembed %}
  954. \t\t{% endif %}
  955.     {# TITLE - SEARCH STRING #}
  956.     {% elseif search is defined %}
  957. \t\t{% set emptySearch = search %}
  958. \t\t{% embed 'website/includes/page-title.html.twig' %}
  959.         \t{% block header %}
  960. \t\t\t\t<h1>{{ getLanguage('results_for', 'product') }} <em>“{{ search }}”</em></h1>
  961.         \t{% endblock %}
  962.         \t{% block migalhas %}
  963. \t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;<span>{{ getLanguage('search_results', 'product') }}</span>
  964.         \t{% endblock %}
  965.     \t{% endembed %}
  966. \t{% endif %}
  967. \t{# COUPON #}
  968. \t{% if productCoupon is defined and productCoupon %}
  969. \t\t<div class=\"coupon-success coupon-category\">
  970.             <p>
  971.                 {{ getLanguage('coupon_code', 'product') }}
  972.                 <strong>{{ productCoupon.key  }}</strong>
  973.                 {{ getLanguage('successfully_applied', 'product') }}.
  974.             </p>
  975.         </div>
  976. \t{% endif %}
  977. \t<div class=\"{{ hasResult ? 'bg-alt' }}\">
  978. \t\t<div class=\"container\">
  979. \t\t\t<div class=\"results\">
  980. \t\t\t\t{# CONTEM ITENS #}
  981. \t\t\t\t{% if hasResult %}
  982. \t\t\t\t\t{% set firstShow = 6 %}
  983. \t\t\t\t\t{% for section in dataSearch %}
  984. \t\t\t\t\t\t{% set secLabel = section.name|lower %}
  985. \t\t\t\t\t\t{% if section.items|length > 0 %}
  986. \t\t\t\t\t\t\t<section class=\"js--results-section\"
  987. \t\t\t\t\t\t\t\tdata-status=\"initial\"
  988. \t\t\t\t\t\t\t\tdata-route=\"{{
  989. \t\t\t\t\t\t\t\t\tpath('productListSearchOrder', { 
  990. \t\t\t\t\t\t\t\t\t\tcouponKey: (productCoupon is defined and productCoupon ? productCoupon.key : '')
  991. \t\t\t\t\t\t\t\t\t}) 
  992. \t\t\t\t\t\t\t\t}}\"
  993. \t\t\t\t\t\t\t\tdata-tipo=\"{{ section.enum }}\"
  994. \t\t\t\t\t\t\t\tdata-search=\"{{ search }}\"
  995. \t\t\t\t\t\t\t\tdata-label=\"{{ secLabel }}\"
  996. \t\t\t\t\t\t\t\tdata-init-offset=\"{{ section.items|length }}\"
  997. \t\t\t\t\t\t\t\tdata-total=\"{{ section.total ?? '' }}\"
  998. \t\t\t\t\t\t\t\tdata-category=\"{{ (category is defined)? category.id }}\">
  999. \t\t\t\t\t\t\t\t<header>
  1000. \t\t\t\t\t\t\t\t\t<h2>{{ ico(section.ico) }} {{ section.name }} ({{ section.total ?? '' }})</h2>
  1001. \t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
  1002. \t\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
  1003. \t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
  1004. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::ORDER_BY') }}\">
  1005. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('order_by', 'product') }}
  1006. \t\t\t\t\t\t\t\t\t\t\t</option>
  1007. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::LOWEST_PRICE') }}\">
  1008. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('lowest_price', 'product') }}
  1009. \t\t\t\t\t\t\t\t\t\t\t</option>
  1010. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::BIGGEST_PRICE') }}\">
  1011. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('biggest_price', 'product') }}
  1012. \t\t\t\t\t\t\t\t\t\t\t</option>
  1013. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::MOST_RELEVANT') }}\">
  1014. \t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('most_relevant', 'product') }}
  1015. \t\t\t\t\t\t\t\t\t\t\t</option>
  1016. \t\t\t\t\t\t\t\t\t\t</select>
  1017. \t\t\t\t\t\t\t\t\t</div>
  1018. \t\t\t\t\t\t\t\t</header>
  1019. \t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
  1020. \t\t\t\t\t\t\t\t\t{% include 'website/product/product-results-items.html.twig' with {'items': section.items } %}
  1021. \t\t\t\t\t\t\t\t</div>
  1022. \t\t\t\t\t\t\t\t<div class=\"content-loader\">
  1023. \t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
  1024. \t\t\t\t\t\t\t\t</div>
  1025. \t\t\t\t\t\t\t\t<div class=\"todos\">
  1026. \t\t\t\t\t\t\t\t\t{% if section.total > firstShow %}
  1027. \t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"{{ secLabel }}\">
  1028. \t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('loading', 'util') }} &hellip;</span>
  1029. \t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('see_more', 'product') }}</span>
  1030. \t\t\t\t\t\t\t\t\t\t</button>
  1031. \t\t\t\t\t\t\t\t\t{% endif %}
  1032. \t\t\t\t\t\t\t\t</div>
  1033. \t\t\t\t\t\t\t</section>
  1034. \t\t\t\t\t\t{% endif %}
  1035. \t\t\t\t\t{% endfor %}
  1036. \t\t\t\t{# VAZIO #}
  1037. \t\t\t\t{% else %}
  1038. \t\t\t\t    <div class=\"box-aviso\">
  1039. \t\t\t\t    \t<div class=\"aviso-img\">
  1040. \t\t\t\t    \t\t<div class=\"img-ico\">
  1041. \t\t\t\t\t\t\t\t{{ ico('no-results') }}
  1042. \t\t\t\t    \t\t</div>
  1043. \t\t\t\t    \t</div>
  1044. \t\t\t\t        <h2 class=\"titulo-aviso\">
  1045. \t\t\t\t        \t<span>
  1046. \t\t\t\t        \t\t{{ getLanguage('not_find', 'product') }} {{ search }} &hellip;&ensp;
  1047. \t\t\t\t        \t</span>
  1048. \t\t\t\t        \t<img src=\"{{ cdn }}img/emoji_crying.png\">
  1049. \t\t\t\t        </h2>
  1050. \t\t\t\t        <p class=\"sub\">{{ getLanguage('check_if_word', 'product') }}</p>
  1051. \t\t\t\t        <a href=\"{{ path('home') }}\" class=\"btn-acao\">
  1052. \t\t\t\t        \t<i class=\"fas fa-arrow-left ico-left\"></i>
  1053. \t\t\t\t        \t{{ getLanguage('back_to_home', 'product') }}
  1054. \t\t\t\t        </a>
  1055. \t\t\t\t    </div>
  1056. \t\t\t\t{% endif %}
  1057. \t\t\t</div>
  1058. \t\t</div>
  1059. \t</div>
  1060. \t
  1061. {% endblock %}
  1062. ""website/product/product-results.html.twig""/var/www/html/templates/website/product/product-results.html.twig");
  1063.     }
  1064. }