<?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;
/* ./faq/faq.html.twig */
class __TwigTemplate_f71bb2a0f6ab00d33cf46a22e87cab03 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate((isset($context["base"]) || array_key_exists("base", $context) ? $context["base"] : (function () { throw new RuntimeError('Variable "base" does not exist.', 1, $this->source); })()), "./faq/faq.html.twig", 1);
}
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", "./faq/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", "./faq/faq.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"/assets/css/faq/faq.css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 10
public function block_javascripts($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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 11
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
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 16
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
<div class=\"backgroundheaderBlog\">
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 25
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 26
echo " ";
$this->displayParentBlock("content", $context, $blocks);
echo "
";
// line 29
if (((isset($context["pro"]) || array_key_exists("pro", $context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.', 29, $this->source); })()) == "false")) {
// line 30
echo "
";
}
// line 32
echo " <!-- Titre -->
<section>
<div class=\"row container firstSection\">
<div class=\"col-md-6\">
<h1 class=\"Home_title\">Foire Aux Questions</h1>
<p class=\"Home_subtitle\">Retrouvez les reponses aux questions les plus demandées sur la plateforme My Audio,</p>
<p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
</div>
<div class=\"col-md-6 col-img\">
<img src=\"/assets/img/faq/FAQ.png\">
</div>
</div>
</section>
<section>
<div class=\"container accordion accordion-flush\" id=\"accordionFlushExample\">
";
// line 48
$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.', 48, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
// line 49
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["faq"], "is_pro", [], "any", false, false, false, 49) == true) && ((isset($context["pro"]) || array_key_exists("pro", $context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.', 49, $this->source); })()) == "true"))) {
// line 50
echo " <div class=\"accordion-item\">
<h2 class=\"accordion-header\" id=\"flush-heading";
// line 51
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 51), "html", null, true);
echo "\">
<button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapse";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 52), "html", null, true);
echo "\" aria-expanded=\"false\" aria-controls=\"flush-collapse";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 52), "html", null, true);
echo "\">
";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, false, 53), "html", null, true);
echo "
</button>
</h2>
<div id=\"flush-collapse";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 56), "html", null, true);
echo "\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 56), "html", null, true);
echo "\" data-bs-parent=\"#accordionFlushExample\">
<div class=\"accordion-body\">";
// line 57
echo twig_get_attribute($this->env, $this->source, $context["faq"], "answer", [], "any", false, false, false, 57);
echo "</div>
</div>
</div>
";
}
// line 61
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["faq"], "is_pro", [], "any", false, false, false, 61) == false) && ((isset($context["pro"]) || array_key_exists("pro", $context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.', 61, $this->source); })()) == "false"))) {
// line 62
echo " <div class=\"accordion-item\">
<h2 class=\"accordion-header\" id=\"flush-heading";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 63), "html", null, true);
echo "\">
<button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapse";
// line 64
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 64), "html", null, true);
echo "\" aria-expanded=\"false\" aria-controls=\"flush-collapse";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 64), "html", null, true);
echo "\">
";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, false, 65), "html", null, true);
echo "
</button>
</h2>
<div id=\"flush-collapse";
// line 68
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 68), "html", null, true);
echo "\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 68), "html", null, true);
echo "\" data-bs-parent=\"#accordionFlushExample\">
<div class=\"accordion-body\">";
// line 69
echo twig_get_attribute($this->env, $this->source, $context["faq"], "answer", [], "any", false, false, false, 69);
echo "</div>
</div>
</div>
";
}
// line 73
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo "
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "./faq/faq.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 258 => 75, 251 => 73, 244 => 69, 238 => 68, 232 => 65, 226 => 64, 222 => 63, 219 => 62, 216 => 61, 209 => 57, 203 => 56, 197 => 53, 191 => 52, 187 => 51, 184 => 50, 181 => 49, 177 => 48, 159 => 32, 155 => 30, 153 => 29, 146 => 26, 136 => 25, 117 => 16, 107 => 15, 94 => 11, 84 => 10, 70 => 4, 60 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"/assets/css/faq/faq.css\">
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% block body %}
{{ parent() }}
<div class=\"backgroundheaderBlog\">
</div>
{% endblock %}
{% block content %}
{{ parent() }}
{% if pro == \"false\" %}
{% endif %}
<!-- Titre -->
<section>
<div class=\"row container firstSection\">
<div class=\"col-md-6\">
<h1 class=\"Home_title\">Foire Aux Questions</h1>
<p class=\"Home_subtitle\">Retrouvez les reponses aux questions les plus demandées sur la plateforme My Audio,</p>
<p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
</div>
<div class=\"col-md-6 col-img\">
<img src=\"/assets/img/faq/FAQ.png\">
</div>
</div>
</section>
<section>
<div class=\"container accordion accordion-flush\" id=\"accordionFlushExample\">
{% for faq in faqs %}
{% if faq.is_pro == true and pro == \"true\" %}
<div class=\"accordion-item\">
<h2 class=\"accordion-header\" id=\"flush-heading{{faq.id}}\">
<button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapse{{faq.id}}\" aria-expanded=\"false\" aria-controls=\"flush-collapse{{faq.id}}\">
{{faq.question}}
</button>
</h2>
<div id=\"flush-collapse{{faq.id}}\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading{{faq.id}}\" data-bs-parent=\"#accordionFlushExample\">
<div class=\"accordion-body\">{{faq.answer|raw}}</div>
</div>
</div>
{% endif %}
{% if faq.is_pro == false and pro == \"false\" %}
<div class=\"accordion-item\">
<h2 class=\"accordion-header\" id=\"flush-heading{{faq.id}}\">
<button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapse{{faq.id}}\" aria-expanded=\"false\" aria-controls=\"flush-collapse{{faq.id}}\">
{{faq.question}}
</button>
</h2>
<div id=\"flush-collapse{{faq.id}}\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading{{faq.id}}\" data-bs-parent=\"#accordionFlushExample\">
<div class=\"accordion-body\">{{faq.answer|raw}}</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</section>
{% endblock %}", "./faq/faq.html.twig", "/var/www/my-audio-site/templates/faq/faq.html.twig");
}
}