<?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;
/* pages/faq.html.twig */
class __TwigTemplate_acdba3be35abeb0e05516d5e5cba3417236c96115870658d936a2b31257cef1f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "pages/faq.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/faq.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/faq.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_content($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(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo " ";
$this->loadTemplate("fragments/_banner.html.twig", "pages/faq.html.twig", 4)->display($context);
// line 5
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 5, $this->source); })()), "article", [], "any", false, false, false, 5)) {
// line 6
echo " <div class=\"container-fluid intro dark\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-3 p-5\">
";
// line 10
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })()), "article", [], "any", false, false, false, 10);
echo "
</div>
</div>
</div>
</div>
";
}
// line 16
echo "
<div class=\"container ssssss\" id=\"faq-list\">
";
// line 18
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_tree')->getCallable()((isset($context["uuid"]) || array_key_exists("uuid", $context) ? $context["uuid"] : (function () { throw new RuntimeError('Variable "uuid" does not exist.', 18, $this->source); })())));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["faq_theme"]) {
// line 19
echo " ";
$context["faq_theme_content"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env, $this->source, $context["faq_theme"], "uuid", [], "any", false, false, false, 19));
// line 20
echo " ";
$context["faq_theme_cpt"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 20);
// line 21
echo " <div class=\"row my-4\">
<div class=\"col-12\">
<h2 class=\"mb-3 fs-4 text-danger\">";
// line 23
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["faq_theme_content"]) || array_key_exists("faq_theme_content", $context) ? $context["faq_theme_content"] : (function () { throw new RuntimeError('Variable "faq_theme_content" does not exist.', 23, $this->source); })()), "content", [], "any", false, false, false, 23), "title", [], "any", false, false, false, 23), "html", null, true);
echo "</h2>
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["faq_theme_content"]) || array_key_exists("faq_theme_content", $context) ? $context["faq_theme_content"] : (function () { throw new RuntimeError('Variable "faq_theme_content" does not exist.', 24, $this->source); })()), "content", [], "any", false, false, false, 24), "blocks", [], "any", false, false, false, 24));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
// line 25
echo " <div class=\"card mb-1\">
<div class=\"card-header\" id=\"headingOne\">
<h5 class=\"mb-0\">
<button class=\"btn\" data-bs-toggle=\"collapse\" data-bs-target=\"#faq_";
// line 28
echo twig_escape_filter($this->env, (((isset($context["faq_theme_cpt"]) || array_key_exists("faq_theme_cpt", $context) ? $context["faq_theme_cpt"] : (function () { throw new RuntimeError('Variable "faq_theme_cpt" does not exist.', 28, $this->source); })()) . "_") . twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 28)), "html", null, true);
echo "\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, false, 29), "html", null, true);
echo "
</button>
</h5>
</div>
<div id=\"faq_";
// line 34
echo twig_escape_filter($this->env, (((isset($context["faq_theme_cpt"]) || array_key_exists("faq_theme_cpt", $context) ? $context["faq_theme_cpt"] : (function () { throw new RuntimeError('Variable "faq_theme_cpt" does not exist.', 34, $this->source); })()) . "_") . twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 34)), "html", null, true);
echo "\" class=\"collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#faq-list\">
<div class=\"card-body\">
";
// line 36
echo twig_get_attribute($this->env, $this->source, $context["faq"], "reponse", [], "any", false, false, false, 36);
echo "
</div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq_theme'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "pages/faq.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 198 => 44, 182 => 41, 163 => 36, 158 => 34, 150 => 29, 146 => 28, 141 => 25, 124 => 24, 120 => 23, 116 => 21, 113 => 20, 110 => 19, 93 => 18, 89 => 16, 80 => 10, 74 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block content %}
{% include \"fragments/_banner.html.twig\" %}
{% if content.article %}
<div class=\"container-fluid intro dark\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-3 p-5\">
{{ content.article|raw }}
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"container ssssss\" id=\"faq-list\">
{% for faq_theme in sulu_navigation_tree(uuid) %}
{% set faq_theme_content = sulu_content_load(faq_theme.uuid) %}
{% set faq_theme_cpt = loop.index %}
<div class=\"row my-4\">
<div class=\"col-12\">
<h2 class=\"mb-3 fs-4 text-danger\">{{ faq_theme_content.content.title }}</h2>
{% for faq in faq_theme_content.content.blocks %}
<div class=\"card mb-1\">
<div class=\"card-header\" id=\"headingOne\">
<h5 class=\"mb-0\">
<button class=\"btn\" data-bs-toggle=\"collapse\" data-bs-target=\"#faq_{{ faq_theme_cpt~'_'~loop.index }}\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
{{ faq.question }}
</button>
</h5>
</div>
<div id=\"faq_{{ faq_theme_cpt~'_'~loop.index }}\" class=\"collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#faq-list\">
<div class=\"card-body\">
{{ faq.reponse|raw }}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
{% endblock %}
", "pages/faq.html.twig", "/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/faq.html.twig");
}
}