<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* ecom/faq.html.twig */
class __TwigTemplate_2eb9a0e70fa2581bc1d2957fd2bfca4e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ecom/faq.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ecom/faq.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "ecom/faq.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 3
yield " <section class=\"h-collections pt-5 mt-4 mb-3\">
<div class=\"container\">
<div class=\"col-md-8 offset-md-2\">
<h2 class=\"secondtxt text-uppercase mb-4 pb-2 inner-title\"><span class=\"titleline bg-secondary d-inline-block position-relative me-2\"></span> Frequently Asked Questions</h2>
</div>
</div>
<div class=\"container mt-2 pt-5\">
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["faq_categories"]) || array_key_exists("faq_categories", $context) ? $context["faq_categories"] : (function () { throw new RuntimeError('Variable "faq_categories" does not exist.', 10, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["faq_category"]) {
// line 11
yield " <div class=\"row faqholder\">
<div class=\"col-md-4\"><big class=\"border-top border-3 border-dark d-inline-block pt-2 fw-bold fs-5\">";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["faq_category"], "name", [], "any", false, false, false, 12), "html", null, true);
yield "</big></div>
<div class=\"col-md-8 ps-4\">
<div class=\"accordion\" >
";
// line 15
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["faqs"]) || array_key_exists("faqs", $context) ? $context["faqs"] : (function () { throw new RuntimeError('Variable "faqs" does not exist.', 15, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["faq_category"], "id", [], "any", false, false, false, 15), [], "array", false, false, false, 15));
foreach ($context['_seq'] as $context["k"] => $context["faq"]) {
// line 16
yield " <div class=\"accordion-item\">
<h2 class=\"accordion-header\" id=\"headingOne\">
<button class=\"accordion-button collapsed border-0 border-top border-3 border-dark rounded-0 ps-0 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 18), "html", null, true);
yield "\" aria-expanded=\"true\" aria-controls=\"collapseOne\"> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "title", [], "any", false, false, false, 18), "html", null, true);
yield " </button>
</h2>
<div id=\"collapse";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 20), "html", null, true);
yield "\" class=\"accordion-collapse collapse border-0\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
<div class=\"accordion-body ps-0 pt-0\"> ";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "description", [], "any", false, false, false, 21), "html", null, true);
yield " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['faq'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
yield " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq_category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
yield " </div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ecom/faq.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 129 => 29, 120 => 25, 110 => 21, 106 => 20, 99 => 18, 95 => 16, 91 => 15, 85 => 12, 82 => 11, 78 => 10, 69 => 3, 59 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<section class=\"h-collections pt-5 mt-4 mb-3\">
<div class=\"container\">
<div class=\"col-md-8 offset-md-2\">
<h2 class=\"secondtxt text-uppercase mb-4 pb-2 inner-title\"><span class=\"titleline bg-secondary d-inline-block position-relative me-2\"></span> Frequently Asked Questions</h2>
</div>
</div>
<div class=\"container mt-2 pt-5\">
{% for faq_category in faq_categories %}
<div class=\"row faqholder\">
<div class=\"col-md-4\"><big class=\"border-top border-3 border-dark d-inline-block pt-2 fw-bold fs-5\">{{ faq_category.name }}</big></div>
<div class=\"col-md-8 ps-4\">
<div class=\"accordion\" >
{% for k, faq in faqs[faq_category.id] %}
<div class=\"accordion-item\">
<h2 class=\"accordion-header\" id=\"headingOne\">
<button class=\"accordion-button collapsed border-0 border-top border-3 border-dark rounded-0 ps-0 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse{{faq.id}}\" aria-expanded=\"true\" aria-controls=\"collapseOne\"> {{ faq.title }} </button>
</h2>
<div id=\"collapse{{faq.id}}\" class=\"accordion-collapse collapse border-0\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
<div class=\"accordion-body ps-0 pt-0\"> {{ faq.description }} </div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endblock %}", "ecom/faq.html.twig", "/var/www/commerce8/noble_natives/templates/ecom/faq.html.twig");
}
}