var/cache/website/dev/twig/67/67407da4c4896ae7427dffe20a2451b763fd2dbafa4501d4d49eb676d0e14ebb.php line 58

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. /* pages/faq.html.twig */
  14. class __TwigTemplate_acdba3be35abeb0e05516d5e5cba3417236c96115870658d936a2b31257cef1f 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/faq.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/faq.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/faq.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "    ";
  55.         $this->loadTemplate("fragments/_banner.html.twig""pages/faq.html.twig"4)->display($context);
  56.         // line 5
  57.         echo "    ";
  58.         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"falsefalsefalse5)) {
  59.             // line 6
  60.             echo "    <div class=\"container-fluid intro dark\">
  61.         <div class=\"container\">
  62.             <div class=\"row justify-content-center\">
  63.                 <div class=\"col-12 mb-3 p-5\">
  64.                     ";
  65.             // line 10
  66.             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"falsefalsefalse10);
  67.             echo "
  68.                 </div>
  69.             </div>
  70.         </div>
  71.     </div>
  72.     ";
  73.         }
  74.         // line 16
  75.         echo "
  76.     <div class=\"container ssssss\" id=\"faq-list\">
  77.         ";
  78.         // line 18
  79.         $context['_parent'] = $context;
  80.         $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); })())));
  81.         $context['loop'] = [
  82.           'parent' => $context['_parent'],
  83.           'index0' => 0,
  84.           'index'  => 1,
  85.           'first'  => true,
  86.         ];
  87.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  88.             $length count($context['_seq']);
  89.             $context['loop']['revindex0'] = $length 1;
  90.             $context['loop']['revindex'] = $length;
  91.             $context['loop']['length'] = $length;
  92.             $context['loop']['last'] = === $length;
  93.         }
  94.         foreach ($context['_seq'] as $context["_key"] => $context["faq_theme"]) {
  95.             // line 19
  96.             echo "            ";
  97.             $context["faq_theme_content"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env$this->source$context["faq_theme"], "uuid", [], "any"falsefalsefalse19));
  98.             // line 20
  99.             echo "            ";
  100.             $context["faq_theme_cpt"] = twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse20);
  101.             // line 21
  102.             echo "            <div class=\"row my-4\">
  103.                 <div class=\"col-12\">
  104.                     <h2 class=\"mb-3 fs-4 text-danger\">";
  105.             // line 23
  106.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse23), "title", [], "any"falsefalsefalse23), "html"nulltrue);
  107.             echo "</h2>
  108.                     ";
  109.             // line 24
  110.             $context['_parent'] = $context;
  111.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse24), "blocks", [], "any"falsefalsefalse24));
  112.             $context['loop'] = [
  113.               'parent' => $context['_parent'],
  114.               'index0' => 0,
  115.               'index'  => 1,
  116.               'first'  => true,
  117.             ];
  118.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  119.                 $length count($context['_seq']);
  120.                 $context['loop']['revindex0'] = $length 1;
  121.                 $context['loop']['revindex'] = $length;
  122.                 $context['loop']['length'] = $length;
  123.                 $context['loop']['last'] = === $length;
  124.             }
  125.             foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
  126.                 // line 25
  127.                 echo "                        <div class=\"card mb-1\">
  128.                             <div class=\"card-header\" id=\"headingOne\">
  129.                                 <h5 class=\"mb-0\">
  130.                                     <button class=\"btn\" data-bs-toggle=\"collapse\" data-bs-target=\"#faq_";
  131.                 // line 28
  132.                 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"falsefalsefalse28)), "html"nulltrue);
  133.                 echo "\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
  134.                                         ";
  135.                 // line 29
  136.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["faq"], "question", [], "any"falsefalsefalse29), "html"nulltrue);
  137.                 echo "
  138.                                     </button>
  139.                                 </h5>
  140.                             </div>
  141.                             <div id=\"faq_";
  142.                 // line 34
  143.                 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"falsefalsefalse34)), "html"nulltrue);
  144.                 echo "\" class=\"collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#faq-list\">
  145.                                 <div class=\"card-body\">
  146.                                     ";
  147.                 // line 36
  148.                 echo twig_get_attribute($this->env$this->source$context["faq"], "reponse", [], "any"falsefalsefalse36);
  149.                 echo "
  150.                                 </div>
  151.                             </div>
  152.                         </div>
  153.                     ";
  154.                 ++$context['loop']['index0'];
  155.                 ++$context['loop']['index'];
  156.                 $context['loop']['first'] = false;
  157.                 if (isset($context['loop']['length'])) {
  158.                     --$context['loop']['revindex0'];
  159.                     --$context['loop']['revindex'];
  160.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  161.                 }
  162.             }
  163.             $_parent $context['_parent'];
  164.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
  165.             $context array_intersect_key($context$_parent) + $_parent;
  166.             // line 41
  167.             echo "                </div>
  168.             </div>
  169.         ";
  170.             ++$context['loop']['index0'];
  171.             ++$context['loop']['index'];
  172.             $context['loop']['first'] = false;
  173.             if (isset($context['loop']['length'])) {
  174.                 --$context['loop']['revindex0'];
  175.                 --$context['loop']['revindex'];
  176.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  177.             }
  178.         }
  179.         $_parent $context['_parent'];
  180.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq_theme'], $context['_parent'], $context['loop']);
  181.         $context array_intersect_key($context$_parent) + $_parent;
  182.         // line 44
  183.         echo "    </div>
  184.     
  185. ";
  186.         
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  188.         
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "pages/faq.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         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,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% extends \"base.html.twig\" %}
  206. {% block content %}
  207.     {% include \"fragments/_banner.html.twig\" %}
  208.     {% if content.article %}
  209.     <div class=\"container-fluid intro dark\">
  210.         <div class=\"container\">
  211.             <div class=\"row justify-content-center\">
  212.                 <div class=\"col-12 mb-3 p-5\">
  213.                     {{ content.article|raw }}
  214.                 </div>
  215.             </div>
  216.         </div>
  217.     </div>
  218.     {% endif %}
  219.     <div class=\"container ssssss\" id=\"faq-list\">
  220.         {% for faq_theme in sulu_navigation_tree(uuid) %}
  221.             {% set faq_theme_content = sulu_content_load(faq_theme.uuid) %}
  222.             {% set faq_theme_cpt = loop.index %}
  223.             <div class=\"row my-4\">
  224.                 <div class=\"col-12\">
  225.                     <h2 class=\"mb-3 fs-4 text-danger\">{{ faq_theme_content.content.title }}</h2>
  226.                     {% for faq in faq_theme_content.content.blocks %}
  227.                         <div class=\"card mb-1\">
  228.                             <div class=\"card-header\" id=\"headingOne\">
  229.                                 <h5 class=\"mb-0\">
  230.                                     <button class=\"btn\" data-bs-toggle=\"collapse\" data-bs-target=\"#faq_{{ faq_theme_cpt~'_'~loop.index }}\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
  231.                                         {{ faq.question }}
  232.                                     </button>
  233.                                 </h5>
  234.                             </div>
  235.                             <div id=\"faq_{{ faq_theme_cpt~'_'~loop.index }}\" class=\"collapse\" aria-labelledby=\"headingOne\" data-bs-parent=\"#faq-list\">
  236.                                 <div class=\"card-body\">
  237.                                     {{ faq.reponse|raw }}
  238.                                 </div>
  239.                             </div>
  240.                         </div>
  241.                     {% endfor %}
  242.                 </div>
  243.             </div>
  244.         {% endfor %}
  245.     </div>
  246.     
  247. {% endblock %}
  248. ""pages/faq.html.twig""/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/faq.html.twig");
  249.     }
  250. }