var/cache/dev/twig/f0/f05e8ec4eb2857dcc051bb7fce46c30e.php line 50

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. /* ./faq/faq.html.twig */
  14. class __TwigTemplate_f71bb2a0f6ab00d33cf46a22e87cab03 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->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'body' => [$this'block_body'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         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);
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""./faq/faq.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""./faq/faq.html.twig"));
  41.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_stylesheets($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         // line 4
  56.         $this->displayParentBlock("stylesheets"$context$blocks);
  57.         echo "
  58.   <link rel=\"stylesheet\" href=\"/assets/css/faq/faq.css\">
  59. ";
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 10
  66.     public function block_javascripts($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  73.         // line 11
  74.         $this->displayParentBlock("javascripts"$context$blocks);
  75.         echo "
  76. ";
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.     }
  82.     // line 15
  83.     public function block_body($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  90.         // line 16
  91.         echo "  ";
  92.         $this->displayParentBlock("body"$context$blocks);
  93.         echo "
  94.     <div class=\"backgroundheaderBlog\">
  95. </div>
  96. ";
  97.         
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99.         
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  101.     }
  102.     // line 25
  103.     public function block_content($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  110.         // line 26
  111.         echo "  ";
  112.         $this->displayParentBlock("content"$context$blocks);
  113.         echo "
  114.      
  115.       ";
  116.         // line 29
  117.         if (((isset($context["pro"]) || array_key_exists("pro"$context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.'29$this->source); })()) == "false")) {
  118.             // line 30
  119.             echo "    
  120.     ";
  121.         }
  122.         // line 32
  123.         echo " <!-- Titre -->
  124.     <section>
  125.         <div class=\"row container firstSection\">
  126.             <div class=\"col-md-6\">
  127.                 <h1 class=\"Home_title\">Foire Aux Questions</h1>
  128.                 <p class=\"Home_subtitle\">Retrouvez les reponses aux questions les plus demandées sur la plateforme My Audio,</p>
  129.                 <p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
  130.             </div>
  131.             <div class=\"col-md-6 col-img\">
  132.                 <img src=\"/assets/img/faq/FAQ.png\">
  133.             </div>
  134.         </div>
  135.     </section>
  136.     <section>
  137.       <div class=\"container accordion accordion-flush\" id=\"accordionFlushExample\">
  138.         ";
  139.         // line 48
  140.         $context['_parent'] = $context;
  141.         $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); })()));
  142.         foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
  143.             // line 49
  144.             echo "        ";
  145.             if (((twig_get_attribute($this->env$this->source$context["faq"], "is_pro", [], "any"falsefalsefalse49) == true) && ((isset($context["pro"]) || array_key_exists("pro"$context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.'49$this->source); })()) == "true"))) {
  146.                 // line 50
  147.                 echo "          <div class=\"accordion-item\">
  148.             <h2 class=\"accordion-header\" id=\"flush-heading";
  149.                 // line 51
  150.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse51), "html"nulltrue);
  151.                 echo "\">
  152.               <button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapse";
  153.                 // line 52
  154.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse52), "html"nulltrue);
  155.                 echo "\" aria-expanded=\"false\" aria-controls=\"flush-collapse";
  156.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse52), "html"nulltrue);
  157.                 echo "\">
  158.                 ";
  159.                 // line 53
  160.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "question", [], "any"falsefalsefalse53), "html"nulltrue);
  161.                 echo "
  162.               </button>
  163.             </h2>
  164.             <div id=\"flush-collapse";
  165.                 // line 56
  166.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse56), "html"nulltrue);
  167.                 echo "\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading";
  168.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse56), "html"nulltrue);
  169.                 echo "\" data-bs-parent=\"#accordionFlushExample\">
  170.               <div class=\"accordion-body\">";
  171.                 // line 57
  172.                 echo twig_get_attribute($this->env$this->source$context["faq"], "answer", [], "any"falsefalsefalse57);
  173.                 echo "</div>
  174.             </div>
  175.           </div>
  176.           ";
  177.             }
  178.             // line 61
  179.             echo "          ";
  180.             if (((twig_get_attribute($this->env$this->source$context["faq"], "is_pro", [], "any"falsefalsefalse61) == false) && ((isset($context["pro"]) || array_key_exists("pro"$context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.'61$this->source); })()) == "false"))) {
  181.                 // line 62
  182.                 echo "          <div class=\"accordion-item\">
  183.             <h2 class=\"accordion-header\" id=\"flush-heading";
  184.                 // line 63
  185.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse63), "html"nulltrue);
  186.                 echo "\">
  187.               <button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#flush-collapse";
  188.                 // line 64
  189.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse64), "html"nulltrue);
  190.                 echo "\" aria-expanded=\"false\" aria-controls=\"flush-collapse";
  191.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse64), "html"nulltrue);
  192.                 echo "\">
  193.                 ";
  194.                 // line 65
  195.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "question", [], "any"falsefalsefalse65), "html"nulltrue);
  196.                 echo "
  197.               </button>
  198.             </h2>
  199.             <div id=\"flush-collapse";
  200.                 // line 68
  201.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse68), "html"nulltrue);
  202.                 echo "\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading";
  203.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse68), "html"nulltrue);
  204.                 echo "\" data-bs-parent=\"#accordionFlushExample\">
  205.               <div class=\"accordion-body\">";
  206.                 // line 69
  207.                 echo twig_get_attribute($this->env$this->source$context["faq"], "answer", [], "any"falsefalsefalse69);
  208.                 echo "</div>
  209.             </div>
  210.           </div>
  211.           ";
  212.             }
  213.             // line 73
  214.             echo "
  215.         ";
  216.         }
  217.         $_parent $context['_parent'];
  218.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
  219.         $context array_intersect_key($context$_parent) + $_parent;
  220.         // line 75
  221.         echo "
  222.        
  223.         
  224.       </div>        
  225.     </section>
  226. ";
  227.         
  228.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  229.         
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  231.     }
  232.     public function getTemplateName()
  233.     {
  234.         return "./faq/faq.html.twig";
  235.     }
  236.     public function isTraitable()
  237.     {
  238.         return false;
  239.     }
  240.     public function getDebugInfo()
  241.     {
  242.         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,);
  243.     }
  244.     public function getSourceContext()
  245.     {
  246.         return new Source("{% extends base %}
  247. {% block stylesheets %}
  248. {{ parent() }}
  249.   <link rel=\"stylesheet\" href=\"/assets/css/faq/faq.css\">
  250. {% endblock %}
  251. {% block javascripts %}
  252. {{ parent() }}
  253. {% endblock %}
  254. {% block body %}
  255.   {{ parent() }}
  256.     <div class=\"backgroundheaderBlog\">
  257. </div>
  258. {% endblock %}
  259. {% block content %}
  260.   {{ parent() }}
  261.      
  262.       {% if pro == \"false\" %}
  263.     
  264.     {% endif %}
  265.  <!-- Titre -->
  266.     <section>
  267.         <div class=\"row container firstSection\">
  268.             <div class=\"col-md-6\">
  269.                 <h1 class=\"Home_title\">Foire Aux Questions</h1>
  270.                 <p class=\"Home_subtitle\">Retrouvez les reponses aux questions les plus demandées sur la plateforme My Audio,</p>
  271.                 <p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
  272.             </div>
  273.             <div class=\"col-md-6 col-img\">
  274.                 <img src=\"/assets/img/faq/FAQ.png\">
  275.             </div>
  276.         </div>
  277.     </section>
  278.     <section>
  279.       <div class=\"container accordion accordion-flush\" id=\"accordionFlushExample\">
  280.         {% for faq in faqs %}
  281.         {% if faq.is_pro == true and pro == \"true\" %}
  282.           <div class=\"accordion-item\">
  283.             <h2 class=\"accordion-header\" id=\"flush-heading{{faq.id}}\">
  284.               <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}}\">
  285.                 {{faq.question}}
  286.               </button>
  287.             </h2>
  288.             <div id=\"flush-collapse{{faq.id}}\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading{{faq.id}}\" data-bs-parent=\"#accordionFlushExample\">
  289.               <div class=\"accordion-body\">{{faq.answer|raw}}</div>
  290.             </div>
  291.           </div>
  292.           {% endif %}
  293.           {% if faq.is_pro == false and pro == \"false\" %}
  294.           <div class=\"accordion-item\">
  295.             <h2 class=\"accordion-header\" id=\"flush-heading{{faq.id}}\">
  296.               <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}}\">
  297.                 {{faq.question}}
  298.               </button>
  299.             </h2>
  300.             <div id=\"flush-collapse{{faq.id}}\" class=\"accordion-collapse collapse\" aria-labelledby=\"flush-heading{{faq.id}}\" data-bs-parent=\"#accordionFlushExample\">
  301.               <div class=\"accordion-body\">{{faq.answer|raw}}</div>
  302.             </div>
  303.           </div>
  304.           {% endif %}
  305.         {% endfor %}
  306.        
  307.         
  308.       </div>        
  309.     </section>
  310. {% endblock %}""./faq/faq.html.twig""/var/www/my-audio-site/templates/faq/faq.html.twig");
  311.     }
  312. }