var/cache/dev/twig/03/03d4d285606c596869a7b4aac1cf645febec9e77ea30ed2019aa1323ca40e0bf.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/faq/faq-section.html.twig */
  14. class __TwigTemplate_d9e5d98350ac75a1e87dd19efd26e6a5f82c968215492378bb3b3dca6f9e5240 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/faq/faq-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/faq/faq-section.html.twig"));
  33.         // line 1
  34.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["faqs"]) || array_key_exists("faqs"$context) ? $context["faqs"] : (function () { throw new RuntimeError('Variable "faqs" does not exist.'1$this->source); })())), 0))) {
  35.             // line 2
  36.             echo "    ";
  37.             $context["hasBg"] = (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.'2$this->source); })()), "background", [], "any"falsefalsefalse2));
  38.             // line 3
  39.             echo "    <section id=\"sec-faq\" class=\"pag-sec";
  40.             echo (((isset($context["hasBg"]) || array_key_exists("hasBg"$context) ? $context["hasBg"] : (function () { throw new RuntimeError('Variable "hasBg" does not exist.'3$this->source); })())) ? (" sec-bg-alt") : (""));
  41.             echo "\">
  42.         <div class=\"container\">
  43.             ";
  44.             // line 5
  45.             if ((=== twig_compare((isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'5$this->source); })()), "produto"))) {
  46.                 echo "<div class=\"lateral-products\">";
  47.             }
  48.             // line 6
  49.             echo "                <header class=\"tit-sec\">
  50.                     <h2>";
  51.             // line 7
  52.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("faq""home"), "html"nulltrue);
  53.             echo "</h2>
  54.                 </header>
  55.                 <div class=\"perguntas\">
  56.                     ";
  57.             // line 10
  58.             $context['_parent'] = $context;
  59.             $context['_seq'] = twig_ensure_traversable((isset($context["faqs"]) || array_key_exists("faqs"$context) ? $context["faqs"] : (function () { throw new RuntimeError('Variable "faqs" does not exist.'10$this->source); })()));
  60.             foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
  61.                 // line 11
  62.                 echo "                        <div class=\"questao\">
  63.                             <div class=\"pergunta js--abre\">
  64.                                 <p>";
  65.                 // line 13
  66.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "question", [], "any"falsefalsefalse13), "html"nulltrue);
  67.                 echo "</p>
  68.                                 <span class=\"material-icons seta\">expand_more</span>
  69.                             </div>
  70.                             <div class=\"js--sub\">
  71.                                 <div class=\"resposta\">
  72.                                     ";
  73.                 // line 18
  74.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "answer", [], "any"falsefalsefalse18), "html"nulltrue);
  75.                 echo "
  76.                                 </div>
  77.                             </div>
  78.                         </div>
  79.                     ";
  80.             }
  81.             $_parent $context['_parent'];
  82.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
  83.             $context array_intersect_key($context$_parent) + $_parent;
  84.             // line 23
  85.             echo "                </div>
  86.             ";
  87.             // line 24
  88.             if ((=== twig_compare((isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'24$this->source); })()), "produtos"))) {
  89.                 echo "</div>";
  90.             }
  91.             // line 25
  92.             echo "        </div>
  93.     </section>
  94. ";
  95.         }
  96.         
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  98.         
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  100.     }
  101.     public function getTemplateName()
  102.     {
  103.         return "website/faq/faq-section.html.twig";
  104.     }
  105.     public function isTraitable()
  106.     {
  107.         return false;
  108.     }
  109.     public function getDebugInfo()
  110.     {
  111.         return array (  101 => 25,  97 => 24,  94 => 23,  83 => 18,  75 => 13,  71 => 11,  67 => 10,  61 => 7,  58 => 6,  54 => 5,  48 => 3,  45 => 2,  43 => 1,);
  112.     }
  113.     public function getSourceContext()
  114.     {
  115.         return new Source("{% if faqs|length > 0 %}
  116.     {% set hasBg = section is defined and section.background %}
  117.     <section id=\"sec-faq\" class=\"pag-sec{{ hasBg? ' sec-bg-alt' }}\">
  118.         <div class=\"container\">
  119.             {% if (layout == 'produto') %}<div class=\"lateral-products\">{% endif %}
  120.                 <header class=\"tit-sec\">
  121.                     <h2>{{ getLanguage('faq', 'home') }}</h2>
  122.                 </header>
  123.                 <div class=\"perguntas\">
  124.                     {% for faq in faqs %}
  125.                         <div class=\"questao\">
  126.                             <div class=\"pergunta js--abre\">
  127.                                 <p>{{ faq.question }}</p>
  128.                                 <span class=\"material-icons seta\">expand_more</span>
  129.                             </div>
  130.                             <div class=\"js--sub\">
  131.                                 <div class=\"resposta\">
  132.                                     {{ faq.answer }}
  133.                                 </div>
  134.                             </div>
  135.                         </div>
  136.                     {% endfor %}
  137.                 </div>
  138.             {% if (layout == 'produtos') %}</div>{% endif %}
  139.         </div>
  140.     </section>
  141. {% endif %}""website/faq/faq-section.html.twig""/var/www/html/templates/website/faq/faq-section.html.twig");
  142.     }
  143. }