var/cache/dev/twig/04/0417cca4cd485a7f1108ff763bedcd6c616824776659496c659e66d7f32d8bc7.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* website/includes/search-section.html.twig */
  14. class __TwigTemplate_dfbdac4191d780635bf8785aa4b8a0230548f5d644d46c46d97050428321f5bc extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/includes/search-section.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/includes/search-section.html.twig"));
  33.         // line 1
  34.         if ((isset($context["hasProducts"]) || array_key_exists("hasProducts"$context) ? $context["hasProducts"] : (function () { throw new RuntimeError('Variable "hasProducts" does not exist.'1$this->source); })())) {
  35.             // line 2
  36.             echo "
  37. \t";
  38.             // line 4
  39.             echo "\t";
  40.             if (array_key_exists("homeLayoutSections"$context)) {
  41.                 // line 5
  42.                 echo "\t\t";
  43.                 $context["page"] = "banner";
  44.                 // line 6
  45.                 echo "\t\t";
  46.                 $context["bg"] = ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "background", [], "any"falsefalsefalse6)) ? (" sec-bg-alt") : (""));
  47.                 // line 7
  48.                 echo "
  49. \t";
  50.                 // line 9
  51.                 echo "\t";
  52.             } else {
  53.                 // line 10
  54.                 echo "\t\t";
  55.                 $context["page"] = "topo";
  56.                 // line 11
  57.                 echo "\t\t";
  58.                 $context["bg"] = " sec-bg-alt";
  59.                 // line 12
  60.                 echo "\t";
  61.             }
  62.             // line 13
  63.             echo "
  64. \t<div class=\"busca-contem-";
  65.             // line 14
  66.             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"nulltrue);
  67.             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"nulltrue);
  68.             echo "\">
  69. \t\t<div class=\"container\">
  70. \t\t\t";
  71.             // line 16
  72.             $this->loadTemplate("website/includes/search-form-section.html.twig""website/includes/search-section.html.twig"16)->display($context);
  73.             // line 17
  74.             echo "\t\t</div>
  75. \t</div>
  76. ";
  77.         }
  78.         
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  80.         
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  82.     }
  83.     public function getTemplateName()
  84.     {
  85.         return "website/includes/search-section.html.twig";
  86.     }
  87.     public function isTraitable()
  88.     {
  89.         return false;
  90.     }
  91.     public function getDebugInfo()
  92.     {
  93.         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,);
  94.     }
  95.     public function getSourceContext()
  96.     {
  97.         return new Source("{% if hasProducts %}
  98. \t{# HOME PAGE #}
  99. \t{% if homeLayoutSections is defined %}
  100. \t\t{% set page = 'banner' %}
  101. \t\t{% set bg   = (homeLayoutSections.searchSection.background)? ' sec-bg-alt' : '' %}
  102. \t{# INTERNAL PAGES #}
  103. \t{% else %}
  104. \t\t{% set page = 'topo' %}
  105. \t\t{% set bg   = ' sec-bg-alt' %}
  106. \t{% endif %}
  107. \t<div class=\"busca-contem-{{ page }}{{ bg }}\">
  108. \t\t<div class=\"container\">
  109. \t\t\t{% include 'website/includes/search-form-section.html.twig' %}
  110. \t\t</div>
  111. \t</div>
  112. {% endif %}""website/includes/search-section.html.twig""/var/www/html/templates/website/includes/search-section.html.twig");
  113.     }
  114. }