<?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/faq/faq-section.html.twig */
class __TwigTemplate_d9e5d98350ac75a1e87dd19efd26e6a5f82c968215492378bb3b3dca6f9e5240 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/faq/faq-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/faq/faq-section.html.twig"));
// line 1
if ((1 === 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))) {
// line 2
echo " ";
$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", false, false, false, 2));
// line 3
echo " <section id=\"sec-faq\" class=\"pag-sec";
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") : (""));
echo "\">
<div class=\"container\">
";
// line 5
if ((0 === 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"))) {
echo "<div class=\"lateral-products\">";
}
// line 6
echo " <header class=\"tit-sec\">
<h2>";
// line 7
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("faq", "home"), "html", null, true);
echo "</h2>
</header>
<div class=\"perguntas\">
";
// line 10
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
// line 11
echo " <div class=\"questao\">
<div class=\"pergunta js--abre\">
<p>";
// line 13
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, false, 13), "html", null, true);
echo "</p>
<span class=\"material-icons seta\">expand_more</span>
</div>
<div class=\"js--sub\">
<div class=\"resposta\">
";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "answer", [], "any", false, false, false, 18), "html", null, true);
echo "
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo " </div>
";
// line 24
if ((0 === 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"))) {
echo "</div>";
}
// line 25
echo " </div>
</section>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "website/faq/faq-section.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% if faqs|length > 0 %}
{% set hasBg = section is defined and section.background %}
<section id=\"sec-faq\" class=\"pag-sec{{ hasBg? ' sec-bg-alt' }}\">
<div class=\"container\">
{% if (layout == 'produto') %}<div class=\"lateral-products\">{% endif %}
<header class=\"tit-sec\">
<h2>{{ getLanguage('faq', 'home') }}</h2>
</header>
<div class=\"perguntas\">
{% for faq in faqs %}
<div class=\"questao\">
<div class=\"pergunta js--abre\">
<p>{{ faq.question }}</p>
<span class=\"material-icons seta\">expand_more</span>
</div>
<div class=\"js--sub\">
<div class=\"resposta\">
{{ faq.answer }}
</div>
</div>
</div>
{% endfor %}
</div>
{% if (layout == 'produtos') %}</div>{% endif %}
</div>
</section>
{% endif %}", "website/faq/faq-section.html.twig", "/var/www/html/templates/website/faq/faq-section.html.twig");
}
}