<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* website/product/product-results.html.twig */
class __TwigTemplate_47d5e1d1556dbdf583cdf2c157d32fae63fec25687ff796025b06e5c75d345ca extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'category_css' => [$this, 'block_category_css'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "website/main.template.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/product/product-results.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/product/product-results.html.twig"));
// line 2
$macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"] = $this->macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"] = $this->loadTemplate("utils.html.twig", "website/product/product-results.html.twig", 2)->unwrap();
// line 1
$this->parent = $this->loadTemplate("website/main.template.html.twig", "website/product/product-results.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_category_css($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "category_css"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "category_css"));
// line 5
echo "\t";
if (array_key_exists("category", $context)) {
// line 6
echo " \t";
$this->loadTemplate("website/includes/css-category.html.twig", "website/product/product-results.html.twig", 6)->display($context);
// line 7
echo "\t";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 11
echo "
\t";
// line 12
$this->loadTemplate("website/includes/search-section.html.twig", "website/product/product-results.html.twig", 12)->display($context);
// line 13
echo "
\t";
// line 15
echo "\t";
if (array_key_exists("category", $context)) {
// line 16
echo "
\t\t";
// line 18
echo "\t\t";
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", false, false, false, 18))) {
// line 19
echo "
\t\t\t<section class=\"category-banner\">
\t\t\t ";
// line 23
echo "\t\t\t <div class=\"banner-img\">
\t\t\t ";
// line 24
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", false, false, false, 24), $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", false, false, false, 24)], 24, $context, $this->getSourceContext());
echo "
\t\t\t </div>
\t\t\t <div class=\"container\">
\t\t\t \t<div class=\"wrap category-banner-color\">
\t\t\t <h1 class=\"title\">";
// line 29
echo twig_escape_filter($this->env, 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.', 29, $this->source); })()), "category", [], "any", false, false, false, 29), "html", null, true);
echo "</h1>
\t\t\t\t\t\t<nav class=\"migalhas\">
\t\t\t\t\t\t\t<a href=\"";
// line 31
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home", "product"), "html", null, true);
echo "</a> / 
\t\t\t\t\t\t\t<a href=\"";
// line 32
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "#categories-container\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("categories", "product"), "html", null, true);
echo "</a> / 
\t\t\t\t\t\t\t<span>";
// line 33
echo twig_escape_filter($this->env, 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.', 33, $this->source); })()), "category", [], "any", false, false, false, 33), "html", null, true);
echo "</span>
\t\t\t\t\t\t</nav>
\t\t ";
// line 35
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", false, false, false, 35)) {
// line 36
echo "\t\t <div class=\"desc\">";
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", false, false, false, 36);
echo "</div>
\t\t ";
}
// line 38
echo "\t\t\t \t</div>
\t\t\t </div>
\t\t\t</section>\t\t\t
\t\t";
// line 43
echo "\t\t";
} else {
// line 44
echo "\t\t\t";
$this->loadTemplate("website/product/product-results.html.twig", "website/product/product-results.html.twig", 44, "241513054")->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", false, false, false, 44)]));
// line 51
echo "\t\t";
}
// line 52
echo "
";
// line 54
echo " ";
} elseif (array_key_exists("search", $context)) {
// line 55
echo "
\t\t";
// line 56
$context["emptySearch"] = (isset($context["search"]) || array_key_exists("search", $context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.', 56, $this->source); })());
// line 57
echo "\t\t";
$this->loadTemplate("website/product/product-results.html.twig", "website/product/product-results.html.twig", 57, "771066095")->display($context);
// line 65
echo "\t";
}
// line 66
echo "
\t";
// line 68
echo "\t";
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); })()))) {
// line 69
echo "\t\t<div class=\"coupon-success coupon-category\">
<p>
";
// line 71
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("coupon_code", "product"), "html", null, true);
echo "
<strong>";
// line 72
echo twig_escape_filter($this->env, 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.', 72, $this->source); })()), "key", [], "any", false, false, false, 72), "html", null, true);
echo "</strong>
";
// line 73
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("successfully_applied", "product"), "html", null, true);
echo ".
</p>
</div>
\t";
}
// line 77
echo "
\t<div class=\"";
// line 78
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") : (""));
echo "\">
\t\t<div class=\"container\">
\t\t\t<div class=\"results\">
\t\t\t\t";
// line 82
echo "\t\t\t\t";
if ((isset($context["hasResult"]) || array_key_exists("hasResult", $context) ? $context["hasResult"] : (function () { throw new RuntimeError('Variable "hasResult" does not exist.', 82, $this->source); })())) {
// line 83
echo "\t\t\t\t\t";
$context["firstShow"] = 6;
// line 84
echo "\t\t\t\t\t";
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
// line 85
echo "\t\t\t\t\t\t";
$context["secLabel"] = twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "name", [], "any", false, false, false, 85));
// line 86
echo "\t\t\t\t\t\t";
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "items", [], "any", false, false, false, 86)), 0))) {
// line 87
echo "\t\t\t\t\t\t\t<section class=\"js--results-section\"
\t\t\t\t\t\t\t\tdata-status=\"initial\"
\t\t\t\t\t\t\t\tdata-route=\"";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("productListSearchOrder", ["couponKey" => ((( // line 91
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", false, false, false, 91)) : (""))]), "html", null, true);
// line 93
echo "\"
\t\t\t\t\t\t\t\tdata-tipo=\"";
// line 94
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "enum", [], "any", false, false, false, 94), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\tdata-search=\"";
// line 95
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", null, true);
echo "\"
\t\t\t\t\t\t\t\tdata-label=\"";
// line 96
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", null, true);
echo "\"
\t\t\t\t\t\t\t\tdata-init-offset=\"";
// line 97
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "items", [], "any", false, false, false, 97)), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\tdata-total=\"";
// line 98
(((twig_get_attribute($this->env, $this->source, $context["section"], "total", [], "any", true, true, false, 98) && !(null === twig_get_attribute($this->env, $this->source, $context["section"], "total", [], "any", false, false, false, 98)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "total", [], "any", false, false, false, 98), "html", null, true))) : (print ("")));
echo "\"
\t\t\t\t\t\t\t\tdata-category=\"";
// line 99
((array_key_exists("category", $context)) ? (print (twig_escape_filter($this->env, 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.', 99, $this->source); })()), "id", [], "any", false, false, false, 99), "html", null, true))) : (print ("")));
echo "\">
\t\t\t\t\t\t\t\t<header>
\t\t\t\t\t\t\t\t\t<h2>";
// line 101
echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", [twig_get_attribute($this->env, $this->source, $context["section"], "ico", [], "any", false, false, false, 101)], 101, $context, $this->getSourceContext());
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "name", [], "any", false, false, false, 101), "html", null, true);
echo " (";
(((twig_get_attribute($this->env, $this->source, $context["section"], "total", [], "any", true, true, false, 101) && !(null === twig_get_attribute($this->env, $this->source, $context["section"], "total", [], "any", false, false, false, 101)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "total", [], "any", false, false, false, 101), "html", null, true))) : (print ("")));
echo ")</h2>
\t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
\t\t\t\t\t\t\t\t\t\t<i class=\"loader\">";
// line 103
echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", ["loader-wish"], 103, $context, $this->getSourceContext());
echo "</i>
\t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
// line 105
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::ORDER_BY"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 106
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("order_by", "product"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
// line 108
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::LOWEST_PRICE"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 109
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("lowest_price", "product"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
// line 111
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::BIGGEST_PRICE"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 112
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("biggest_price", "product"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
// line 114
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("ProductOfferEnum::MOST_RELEVANT"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 115
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("most_relevant", "product"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</header>
\t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
\t\t\t\t\t\t\t\t\t";
// line 121
$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", false, false, false, 121)]));
// line 122
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"content-loader\">
\t\t\t\t\t\t\t\t\t<i class=\"loader\">";
// line 124
echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", ["loader-wish"], 124, $context, $this->getSourceContext());
echo "</i>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"todos\">
\t\t\t\t\t\t\t\t\t";
// line 127
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["section"], "total", [], "any", false, false, false, 127), (isset($context["firstShow"]) || array_key_exists("firstShow", $context) ? $context["firstShow"] : (function () { throw new RuntimeError('Variable "firstShow" does not exist.', 127, $this->source); })())))) {
// line 128
echo "\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"";
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", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t<span>";
// line 129
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("loading", "util"), "html", null, true);
echo " …</span>
\t\t\t\t\t\t\t\t\t\t\t<span>";
// line 130
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("see_more", "product"), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t";
}
// line 133
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t";
}
// line 136
echo "\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
echo "
\t\t\t\t";
// line 139
echo "\t\t\t\t";
} else {
// line 140
echo "\t\t\t\t <div class=\"box-aviso\">
\t\t\t\t \t<div class=\"aviso-img\">
\t\t\t\t \t\t<div class=\"img-ico\">
\t\t\t\t\t\t\t\t";
// line 143
echo twig_call_macro($macros["__internal_ea4d8cd8d41e4d4a2254a6414d9d61bb98dab65ae907e97fa7d02fd2f3af21de"], "macro_ico", ["no-results"], 143, $context, $this->getSourceContext());
echo "
\t\t\t\t \t\t</div>
\t\t\t\t \t</div>
\t\t\t\t <h2 class=\"titulo-aviso\">
\t\t\t\t \t<span>
\t\t\t\t \t\t";
// line 148
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("not_find", "product"), "html", null, true);
echo " ";
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", null, true);
echo " … 
\t\t\t\t \t</span>
\t\t\t\t \t<img src=\"";
// line 150
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", null, true);
echo "img/emoji_crying.png\">
\t\t\t\t </h2>
\t\t\t\t <p class=\"sub\">";
// line 152
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("check_if_word", "product"), "html", null, true);
echo "</p>
\t\t\t\t <a href=\"";
// line 153
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\" class=\"btn-acao\">
\t\t\t\t \t<i class=\"fas fa-arrow-left ico-left\"></i>
\t\t\t\t \t";
// line 155
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("back_to_home", "product"), "html", null, true);
echo "
\t\t\t\t </a>
\t\t\t\t </div>
\t\t\t\t";
}
// line 160
echo "\t\t\t</div>
\t\t</div>
\t</div>
\t
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/product/product-results.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'website/main.template.html.twig' %}
{% from 'utils.html.twig' import ico, imgUpload %}
{% block category_css %}
\t{% if category is defined %}
\t{% include 'website/includes/css-category.html.twig' %}
\t{% endif %}
{% endblock %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
\t{# TITLE - CATEGORIES #}
\t{% if category is defined %}
\t\t{# TITLE - CATEGORIES - IMAGE #}
\t\t{% if category.image is not null %}
\t\t\t<section class=\"category-banner\">
\t\t\t {# BANNER #}
\t\t\t <div class=\"banner-img\">
\t\t\t {{ imgUpload(category.image, enum('AbstractEnum::PATH_OTHERS'), 'category-cover', category.category) }}
\t\t\t </div>
\t\t\t <div class=\"container\">
\t\t\t \t<div class=\"wrap category-banner-color\">
\t\t\t <h1 class=\"title\">{{ category.category }}</h1>
\t\t\t\t\t\t<nav class=\"migalhas\">
\t\t\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / 
\t\t\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a> / 
\t\t\t\t\t\t\t<span>{{ category.category }}</span>
\t\t\t\t\t\t</nav>
\t\t {% if category.description %}
\t\t <div class=\"desc\">{{ category.description|raw }}</div>
\t\t {% endif %}
\t\t\t \t</div>
\t\t\t </div>
\t\t\t</section>\t\t\t
\t\t{# TITLE - CATEGORIES - NO IMAGE #}
\t\t{% else %}
\t\t\t{% embed 'website/includes/page-title.html.twig' with { pageTitle: category.category }%}
\t\t\t\t{% block migalhas %}
\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / 
\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a> / 
\t\t\t\t\t<span>{{ category.category }}</span>
\t\t\t\t{% endblock %}
\t\t\t{% endembed %}
\t\t{% endif %}
{# TITLE - SEARCH STRING #}
{% elseif search is defined %}
\t\t{% set emptySearch = search %}
\t\t{% embed 'website/includes/page-title.html.twig' %}
\t{% block header %}
\t\t\t\t<h1>{{ getLanguage('results_for', 'product') }} <em>“{{ search }}”</em></h1>
\t{% endblock %}
\t{% block migalhas %}
\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / <span>{{ getLanguage('search_results', 'product') }}</span>
\t{% endblock %}
\t{% endembed %}
\t{% endif %}
\t{# COUPON #}
\t{% if productCoupon is defined and productCoupon %}
\t\t<div class=\"coupon-success coupon-category\">
<p>
{{ getLanguage('coupon_code', 'product') }}
<strong>{{ productCoupon.key }}</strong>
{{ getLanguage('successfully_applied', 'product') }}.
</p>
</div>
\t{% endif %}
\t<div class=\"{{ hasResult ? 'bg-alt' }}\">
\t\t<div class=\"container\">
\t\t\t<div class=\"results\">
\t\t\t\t{# CONTEM ITENS #}
\t\t\t\t{% if hasResult %}
\t\t\t\t\t{% set firstShow = 6 %}
\t\t\t\t\t{% for section in dataSearch %}
\t\t\t\t\t\t{% set secLabel = section.name|lower %}
\t\t\t\t\t\t{% if section.items|length > 0 %}
\t\t\t\t\t\t\t<section class=\"js--results-section\"
\t\t\t\t\t\t\t\tdata-status=\"initial\"
\t\t\t\t\t\t\t\tdata-route=\"{{
\t\t\t\t\t\t\t\t\tpath('productListSearchOrder', {
\t\t\t\t\t\t\t\t\t\tcouponKey: (productCoupon is defined and productCoupon ? productCoupon.key : '')
\t\t\t\t\t\t\t\t\t})
\t\t\t\t\t\t\t\t}}\"
\t\t\t\t\t\t\t\tdata-tipo=\"{{ section.enum }}\"
\t\t\t\t\t\t\t\tdata-search=\"{{ search }}\"
\t\t\t\t\t\t\t\tdata-label=\"{{ secLabel }}\"
\t\t\t\t\t\t\t\tdata-init-offset=\"{{ section.items|length }}\"
\t\t\t\t\t\t\t\tdata-total=\"{{ section.total ?? '' }}\"
\t\t\t\t\t\t\t\tdata-category=\"{{ (category is defined)? category.id }}\">
\t\t\t\t\t\t\t\t<header>
\t\t\t\t\t\t\t\t\t<h2>{{ ico(section.ico) }} {{ section.name }} ({{ section.total ?? '' }})</h2>
\t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
\t\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
\t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::ORDER_BY') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('order_by', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::LOWEST_PRICE') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('lowest_price', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::BIGGEST_PRICE') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('biggest_price', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::MOST_RELEVANT') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('most_relevant', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</header>
\t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
\t\t\t\t\t\t\t\t\t{% include 'website/product/product-results-items.html.twig' with {'items': section.items } %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"content-loader\">
\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"todos\">
\t\t\t\t\t\t\t\t\t{% if section.total > firstShow %}
\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"{{ secLabel }}\">
\t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('loading', 'util') }} …</span>
\t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('see_more', 'product') }}</span>
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t{# VAZIO #}
\t\t\t\t{% else %}
\t\t\t\t <div class=\"box-aviso\">
\t\t\t\t \t<div class=\"aviso-img\">
\t\t\t\t \t\t<div class=\"img-ico\">
\t\t\t\t\t\t\t\t{{ ico('no-results') }}
\t\t\t\t \t\t</div>
\t\t\t\t \t</div>
\t\t\t\t <h2 class=\"titulo-aviso\">
\t\t\t\t \t<span>
\t\t\t\t \t\t{{ getLanguage('not_find', 'product') }} {{ search }} … 
\t\t\t\t \t</span>
\t\t\t\t \t<img src=\"{{ cdn }}img/emoji_crying.png\">
\t\t\t\t </h2>
\t\t\t\t <p class=\"sub\">{{ getLanguage('check_if_word', 'product') }}</p>
\t\t\t\t <a href=\"{{ path('home') }}\" class=\"btn-acao\">
\t\t\t\t \t<i class=\"fas fa-arrow-left ico-left\"></i>
\t\t\t\t \t{{ getLanguage('back_to_home', 'product') }}
\t\t\t\t </a>
\t\t\t\t </div>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t</div>
\t</div>
\t
{% endblock %}
", "website/product/product-results.html.twig", "/var/www/html/templates/website/product/product-results.html.twig");
}
}
/* website/product/product-results.html.twig */
class __TwigTemplate_47d5e1d1556dbdf583cdf2c157d32fae63fec25687ff796025b06e5c75d345ca___241513054 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'migalhas' => [$this, 'block_migalhas'],
];
}
protected function doGetParent(array $context)
{
// line 44
return "website/includes/page-title.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/product/product-results.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/product/product-results.html.twig"));
$this->parent = $this->loadTemplate("website/includes/page-title.html.twig", "website/product/product-results.html.twig", 44);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 45
public function block_migalhas($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "migalhas"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "migalhas"));
// line 46
echo "\t\t\t\t\t<a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home", "product"), "html", null, true);
echo "</a> / 
\t\t\t\t\t<a href=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "#categories-container\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("categories", "product"), "html", null, true);
echo "</a> / 
\t\t\t\t\t<span>";
// line 48
echo twig_escape_filter($this->env, 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.', 48, $this->source); })()), "category", [], "any", false, false, false, 48), "html", null, true);
echo "</span>
\t\t\t\t";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/product/product-results.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'website/main.template.html.twig' %}
{% from 'utils.html.twig' import ico, imgUpload %}
{% block category_css %}
\t{% if category is defined %}
\t{% include 'website/includes/css-category.html.twig' %}
\t{% endif %}
{% endblock %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
\t{# TITLE - CATEGORIES #}
\t{% if category is defined %}
\t\t{# TITLE - CATEGORIES - IMAGE #}
\t\t{% if category.image is not null %}
\t\t\t<section class=\"category-banner\">
\t\t\t {# BANNER #}
\t\t\t <div class=\"banner-img\">
\t\t\t {{ imgUpload(category.image, enum('AbstractEnum::PATH_OTHERS'), 'category-cover', category.category) }}
\t\t\t </div>
\t\t\t <div class=\"container\">
\t\t\t \t<div class=\"wrap category-banner-color\">
\t\t\t <h1 class=\"title\">{{ category.category }}</h1>
\t\t\t\t\t\t<nav class=\"migalhas\">
\t\t\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / 
\t\t\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a> / 
\t\t\t\t\t\t\t<span>{{ category.category }}</span>
\t\t\t\t\t\t</nav>
\t\t {% if category.description %}
\t\t <div class=\"desc\">{{ category.description|raw }}</div>
\t\t {% endif %}
\t\t\t \t</div>
\t\t\t </div>
\t\t\t</section>\t\t\t
\t\t{# TITLE - CATEGORIES - NO IMAGE #}
\t\t{% else %}
\t\t\t{% embed 'website/includes/page-title.html.twig' with { pageTitle: category.category }%}
\t\t\t\t{% block migalhas %}
\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / 
\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a> / 
\t\t\t\t\t<span>{{ category.category }}</span>
\t\t\t\t{% endblock %}
\t\t\t{% endembed %}
\t\t{% endif %}
{# TITLE - SEARCH STRING #}
{% elseif search is defined %}
\t\t{% set emptySearch = search %}
\t\t{% embed 'website/includes/page-title.html.twig' %}
\t{% block header %}
\t\t\t\t<h1>{{ getLanguage('results_for', 'product') }} <em>“{{ search }}”</em></h1>
\t{% endblock %}
\t{% block migalhas %}
\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / <span>{{ getLanguage('search_results', 'product') }}</span>
\t{% endblock %}
\t{% endembed %}
\t{% endif %}
\t{# COUPON #}
\t{% if productCoupon is defined and productCoupon %}
\t\t<div class=\"coupon-success coupon-category\">
<p>
{{ getLanguage('coupon_code', 'product') }}
<strong>{{ productCoupon.key }}</strong>
{{ getLanguage('successfully_applied', 'product') }}.
</p>
</div>
\t{% endif %}
\t<div class=\"{{ hasResult ? 'bg-alt' }}\">
\t\t<div class=\"container\">
\t\t\t<div class=\"results\">
\t\t\t\t{# CONTEM ITENS #}
\t\t\t\t{% if hasResult %}
\t\t\t\t\t{% set firstShow = 6 %}
\t\t\t\t\t{% for section in dataSearch %}
\t\t\t\t\t\t{% set secLabel = section.name|lower %}
\t\t\t\t\t\t{% if section.items|length > 0 %}
\t\t\t\t\t\t\t<section class=\"js--results-section\"
\t\t\t\t\t\t\t\tdata-status=\"initial\"
\t\t\t\t\t\t\t\tdata-route=\"{{
\t\t\t\t\t\t\t\t\tpath('productListSearchOrder', {
\t\t\t\t\t\t\t\t\t\tcouponKey: (productCoupon is defined and productCoupon ? productCoupon.key : '')
\t\t\t\t\t\t\t\t\t})
\t\t\t\t\t\t\t\t}}\"
\t\t\t\t\t\t\t\tdata-tipo=\"{{ section.enum }}\"
\t\t\t\t\t\t\t\tdata-search=\"{{ search }}\"
\t\t\t\t\t\t\t\tdata-label=\"{{ secLabel }}\"
\t\t\t\t\t\t\t\tdata-init-offset=\"{{ section.items|length }}\"
\t\t\t\t\t\t\t\tdata-total=\"{{ section.total ?? '' }}\"
\t\t\t\t\t\t\t\tdata-category=\"{{ (category is defined)? category.id }}\">
\t\t\t\t\t\t\t\t<header>
\t\t\t\t\t\t\t\t\t<h2>{{ ico(section.ico) }} {{ section.name }} ({{ section.total ?? '' }})</h2>
\t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
\t\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
\t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::ORDER_BY') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('order_by', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::LOWEST_PRICE') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('lowest_price', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::BIGGEST_PRICE') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('biggest_price', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::MOST_RELEVANT') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('most_relevant', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</header>
\t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
\t\t\t\t\t\t\t\t\t{% include 'website/product/product-results-items.html.twig' with {'items': section.items } %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"content-loader\">
\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"todos\">
\t\t\t\t\t\t\t\t\t{% if section.total > firstShow %}
\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"{{ secLabel }}\">
\t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('loading', 'util') }} …</span>
\t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('see_more', 'product') }}</span>
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t{# VAZIO #}
\t\t\t\t{% else %}
\t\t\t\t <div class=\"box-aviso\">
\t\t\t\t \t<div class=\"aviso-img\">
\t\t\t\t \t\t<div class=\"img-ico\">
\t\t\t\t\t\t\t\t{{ ico('no-results') }}
\t\t\t\t \t\t</div>
\t\t\t\t \t</div>
\t\t\t\t <h2 class=\"titulo-aviso\">
\t\t\t\t \t<span>
\t\t\t\t \t\t{{ getLanguage('not_find', 'product') }} {{ search }} … 
\t\t\t\t \t</span>
\t\t\t\t \t<img src=\"{{ cdn }}img/emoji_crying.png\">
\t\t\t\t </h2>
\t\t\t\t <p class=\"sub\">{{ getLanguage('check_if_word', 'product') }}</p>
\t\t\t\t <a href=\"{{ path('home') }}\" class=\"btn-acao\">
\t\t\t\t \t<i class=\"fas fa-arrow-left ico-left\"></i>
\t\t\t\t \t{{ getLanguage('back_to_home', 'product') }}
\t\t\t\t </a>
\t\t\t\t </div>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t</div>
\t</div>
\t
{% endblock %}
", "website/product/product-results.html.twig", "/var/www/html/templates/website/product/product-results.html.twig");
}
}
/* website/product/product-results.html.twig */
class __TwigTemplate_47d5e1d1556dbdf583cdf2c157d32fae63fec25687ff796025b06e5c75d345ca___771066095 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'migalhas' => [$this, 'block_migalhas'],
];
}
protected function doGetParent(array $context)
{
// line 57
return "website/includes/page-title.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/product/product-results.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/product/product-results.html.twig"));
$this->parent = $this->loadTemplate("website/includes/page-title.html.twig", "website/product/product-results.html.twig", 57);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 58
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 59
echo "\t\t\t\t<h1>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("results_for", "product"), "html", null, true);
echo " <em>“";
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", null, true);
echo "”</em></h1>
\t";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 61
public function block_migalhas($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "migalhas"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "migalhas"));
// line 62
echo "\t\t\t\t<a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home", "product"), "html", null, true);
echo "</a> / <span>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("search_results", "product"), "html", null, true);
echo "</span>
\t";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/product/product-results.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'website/main.template.html.twig' %}
{% from 'utils.html.twig' import ico, imgUpload %}
{% block category_css %}
\t{% if category is defined %}
\t{% include 'website/includes/css-category.html.twig' %}
\t{% endif %}
{% endblock %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
\t{# TITLE - CATEGORIES #}
\t{% if category is defined %}
\t\t{# TITLE - CATEGORIES - IMAGE #}
\t\t{% if category.image is not null %}
\t\t\t<section class=\"category-banner\">
\t\t\t {# BANNER #}
\t\t\t <div class=\"banner-img\">
\t\t\t {{ imgUpload(category.image, enum('AbstractEnum::PATH_OTHERS'), 'category-cover', category.category) }}
\t\t\t </div>
\t\t\t <div class=\"container\">
\t\t\t \t<div class=\"wrap category-banner-color\">
\t\t\t <h1 class=\"title\">{{ category.category }}</h1>
\t\t\t\t\t\t<nav class=\"migalhas\">
\t\t\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / 
\t\t\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a> / 
\t\t\t\t\t\t\t<span>{{ category.category }}</span>
\t\t\t\t\t\t</nav>
\t\t {% if category.description %}
\t\t <div class=\"desc\">{{ category.description|raw }}</div>
\t\t {% endif %}
\t\t\t \t</div>
\t\t\t </div>
\t\t\t</section>\t\t\t
\t\t{# TITLE - CATEGORIES - NO IMAGE #}
\t\t{% else %}
\t\t\t{% embed 'website/includes/page-title.html.twig' with { pageTitle: category.category }%}
\t\t\t\t{% block migalhas %}
\t\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / 
\t\t\t\t\t<a href=\"{{ path('home') }}#categories-container\">{{ getLanguage('categories', 'product') }}</a> / 
\t\t\t\t\t<span>{{ category.category }}</span>
\t\t\t\t{% endblock %}
\t\t\t{% endembed %}
\t\t{% endif %}
{# TITLE - SEARCH STRING #}
{% elseif search is defined %}
\t\t{% set emptySearch = search %}
\t\t{% embed 'website/includes/page-title.html.twig' %}
\t{% block header %}
\t\t\t\t<h1>{{ getLanguage('results_for', 'product') }} <em>“{{ search }}”</em></h1>
\t{% endblock %}
\t{% block migalhas %}
\t\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a> / <span>{{ getLanguage('search_results', 'product') }}</span>
\t{% endblock %}
\t{% endembed %}
\t{% endif %}
\t{# COUPON #}
\t{% if productCoupon is defined and productCoupon %}
\t\t<div class=\"coupon-success coupon-category\">
<p>
{{ getLanguage('coupon_code', 'product') }}
<strong>{{ productCoupon.key }}</strong>
{{ getLanguage('successfully_applied', 'product') }}.
</p>
</div>
\t{% endif %}
\t<div class=\"{{ hasResult ? 'bg-alt' }}\">
\t\t<div class=\"container\">
\t\t\t<div class=\"results\">
\t\t\t\t{# CONTEM ITENS #}
\t\t\t\t{% if hasResult %}
\t\t\t\t\t{% set firstShow = 6 %}
\t\t\t\t\t{% for section in dataSearch %}
\t\t\t\t\t\t{% set secLabel = section.name|lower %}
\t\t\t\t\t\t{% if section.items|length > 0 %}
\t\t\t\t\t\t\t<section class=\"js--results-section\"
\t\t\t\t\t\t\t\tdata-status=\"initial\"
\t\t\t\t\t\t\t\tdata-route=\"{{
\t\t\t\t\t\t\t\t\tpath('productListSearchOrder', {
\t\t\t\t\t\t\t\t\t\tcouponKey: (productCoupon is defined and productCoupon ? productCoupon.key : '')
\t\t\t\t\t\t\t\t\t})
\t\t\t\t\t\t\t\t}}\"
\t\t\t\t\t\t\t\tdata-tipo=\"{{ section.enum }}\"
\t\t\t\t\t\t\t\tdata-search=\"{{ search }}\"
\t\t\t\t\t\t\t\tdata-label=\"{{ secLabel }}\"
\t\t\t\t\t\t\t\tdata-init-offset=\"{{ section.items|length }}\"
\t\t\t\t\t\t\t\tdata-total=\"{{ section.total ?? '' }}\"
\t\t\t\t\t\t\t\tdata-category=\"{{ (category is defined)? category.id }}\">
\t\t\t\t\t\t\t\t<header>
\t\t\t\t\t\t\t\t\t<h2>{{ ico(section.ico) }} {{ section.name }} ({{ section.total ?? '' }})</h2>
\t\t\t\t\t\t\t\t\t<div class=\"ordenacao\">
\t\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
\t\t\t\t\t\t\t\t\t\t<select class=\"custom-select search-combo\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::ORDER_BY') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('order_by', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::LOWEST_PRICE') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('lowest_price', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::BIGGEST_PRICE') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('biggest_price', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ enum('ProductOfferEnum::MOST_RELEVANT') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ getLanguage('most_relevant', 'product') }}
\t\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</header>
\t\t\t\t\t\t\t\t<div class=\"products-list js--results-container\">
\t\t\t\t\t\t\t\t\t{% include 'website/product/product-results-items.html.twig' with {'items': section.items } %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"content-loader\">
\t\t\t\t\t\t\t\t\t<i class=\"loader\">{{ ico('loader-wish') }}</i>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"todos\">
\t\t\t\t\t\t\t\t\t{% if section.total > firstShow %}
\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"js--search-load-more\" data-label=\"{{ secLabel }}\">
\t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('loading', 'util') }} …</span>
\t\t\t\t\t\t\t\t\t\t\t<span>{{ getLanguage('see_more', 'product') }}</span>
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t{# VAZIO #}
\t\t\t\t{% else %}
\t\t\t\t <div class=\"box-aviso\">
\t\t\t\t \t<div class=\"aviso-img\">
\t\t\t\t \t\t<div class=\"img-ico\">
\t\t\t\t\t\t\t\t{{ ico('no-results') }}
\t\t\t\t \t\t</div>
\t\t\t\t \t</div>
\t\t\t\t <h2 class=\"titulo-aviso\">
\t\t\t\t \t<span>
\t\t\t\t \t\t{{ getLanguage('not_find', 'product') }} {{ search }} … 
\t\t\t\t \t</span>
\t\t\t\t \t<img src=\"{{ cdn }}img/emoji_crying.png\">
\t\t\t\t </h2>
\t\t\t\t <p class=\"sub\">{{ getLanguage('check_if_word', 'product') }}</p>
\t\t\t\t <a href=\"{{ path('home') }}\" class=\"btn-acao\">
\t\t\t\t \t<i class=\"fas fa-arrow-left ico-left\"></i>
\t\t\t\t \t{{ getLanguage('back_to_home', 'product') }}
\t\t\t\t </a>
\t\t\t\t </div>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t</div>
\t</div>
\t
{% endblock %}
", "website/product/product-results.html.twig", "/var/www/html/templates/website/product/product-results.html.twig");
}
}