<?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/includes/search-section.html.twig */
class __TwigTemplate_dfbdac4191d780635bf8785aa4b8a0230548f5d644d46c46d97050428321f5bc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/includes/search-section.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/includes/search-section.html.twig"));
// line 1
if ((isset($context["hasProducts"]) || array_key_exists("hasProducts", $context) ? $context["hasProducts"] : (function () { throw new RuntimeError('Variable "hasProducts" does not exist.', 1, $this->source); })())) {
// line 2
echo "
\t";
// line 4
echo "\t";
if (array_key_exists("homeLayoutSections", $context)) {
// line 5
echo "\t\t";
$context["page"] = "banner";
// line 6
echo "\t\t";
$context["bg"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["homeLayoutSections"]) || array_key_exists("homeLayoutSections", $context) ? $context["homeLayoutSections"] : (function () { throw new RuntimeError('Variable "homeLayoutSections" does not exist.', 6, $this->source); })()), "searchSection", [], "any", false, false, false, 6), "background", [], "any", false, false, false, 6)) ? (" sec-bg-alt") : (""));
// line 7
echo "
\t";
// line 9
echo "\t";
} else {
// line 10
echo "\t\t";
$context["page"] = "topo";
// line 11
echo "\t\t";
$context["bg"] = " sec-bg-alt";
// line 12
echo "\t";
}
// line 13
echo "
\t<div class=\"busca-contem-";
// line 14
echo twig_escape_filter($this->env, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 14, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["bg"]) || array_key_exists("bg", $context) ? $context["bg"] : (function () { throw new RuntimeError('Variable "bg" does not exist.', 14, $this->source); })()), "html", null, true);
echo "\">
\t\t<div class=\"container\">
\t\t\t";
// line 16
$this->loadTemplate("website/includes/search-form-section.html.twig", "website/includes/search-section.html.twig", 16)->display($context);
// line 17
echo "\t\t</div>
\t</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "website/includes/search-section.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 83 => 17, 81 => 16, 75 => 14, 72 => 13, 69 => 12, 66 => 11, 63 => 10, 60 => 9, 57 => 7, 54 => 6, 51 => 5, 48 => 4, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if hasProducts %}
\t{# HOME PAGE #}
\t{% if homeLayoutSections is defined %}
\t\t{% set page = 'banner' %}
\t\t{% set bg = (homeLayoutSections.searchSection.background)? ' sec-bg-alt' : '' %}
\t{# INTERNAL PAGES #}
\t{% else %}
\t\t{% set page = 'topo' %}
\t\t{% set bg = ' sec-bg-alt' %}
\t{% endif %}
\t<div class=\"busca-contem-{{ page }}{{ bg }}\">
\t\t<div class=\"container\">
\t\t\t{% include 'website/includes/search-form-section.html.twig' %}
\t\t</div>
\t</div>
{% endif %}", "website/includes/search-section.html.twig", "/var/www/html/templates/website/includes/search-section.html.twig");
}
}