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

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 "\t";
  37.             if ((((array_key_exists("banners"$context) && array_key_exists("homeLayoutSections"$context)) && (=== twig_compare(twig_length_filter($this->env, (isset($context["banners"]) || array_key_exists("banners"$context) ? $context["banners"] : (function () { throw new RuntimeError('Variable "banners" does not exist.'2$this->source); })())), 0))) && 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.'2$this->source); })()), "bannerSection", [], "any"falsefalsefalse2))) {
  38.                 // line 3
  39.                 echo "\t\t<div class=\"busca-contem-banner ";
  40.                 if ((array_key_exists("section"$context) && twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'3$this->source); })()), "background", [], "any"falsefalsefalse3))) {
  41.                     echo " sec-bg-alt";
  42.                 }
  43.                 echo "\">
  44. \t\t\t<div class=\"container\">
  45. \t\t\t\t";
  46.                 // line 5
  47.                 $this->loadTemplate("website/includes/search-form-section.html.twig""website/includes/search-section.html.twig"5)->display($context);
  48.                 // line 6
  49.                 echo "\t\t\t</div>
  50. \t\t</div>
  51. \t";
  52.             } else {
  53.                 // line 9
  54.                 echo "\t\t<div class=\"busca-contem-topo\">
  55. \t\t\t<div class=\"container\">
  56. \t\t    \t";
  57.                 // line 11
  58.                 $this->loadTemplate("website/includes/search-form-section.html.twig""website/includes/search-section.html.twig"11)->display($context);
  59.                 // line 12
  60.                 echo "\t\t    </div>
  61. \t\t</div>
  62. \t";
  63.             }
  64.         }
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.     }
  70.     public function getTemplateName()
  71.     {
  72.         return "website/includes/search-section.html.twig";
  73.     }
  74.     public function isTraitable()
  75.     {
  76.         return false;
  77.     }
  78.     public function getDebugInfo()
  79.     {
  80.         return array (  69 => 12,  67 => 11,  63 => 9,  58 => 6,  56 => 5,  48 => 3,  45 => 2,  43 => 1,);
  81.     }
  82.     public function getSourceContext()
  83.     {
  84.         return new Source("{% if hasProducts %}
  85. \t{% if banners is defined and homeLayoutSections is defined and banners|length > 0 and homeLayoutSections.bannerSection %}
  86. \t\t<div class=\"busca-contem-banner {% if section is defined and section.background %} sec-bg-alt{% endif %}\">
  87. \t\t\t<div class=\"container\">
  88. \t\t\t\t{% include 'website/includes/search-form-section.html.twig' %}
  89. \t\t\t</div>
  90. \t\t</div>
  91. \t{% else %}
  92. \t\t<div class=\"busca-contem-topo\">
  93. \t\t\t<div class=\"container\">
  94. \t\t    \t{% include 'website/includes/search-form-section.html.twig' %}
  95. \t\t    </div>
  96. \t\t</div>
  97. \t{% endif %}
  98. {% endif %}""website/includes/search-section.html.twig""/var/www/html/templates/website/includes/search-section.html.twig");
  99.     }
  100. }