var/cache/dev/twig/ed/edc6ce75d27aaaa73bc50cea3fcbc165b46dea68a2b808e9aae4403ccd309df1.php line 39

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. /* @BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig */
  14. class __TwigTemplate_2c8184cdc3cf3641e0ef3d9a9e2073278224108887edfabcd84c2a12227c1eb0 extends \Twig\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.             'javascripts' => [$this'block_javascripts'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@SyliusShop/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"));
  39.         // line 3
  40.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"3)->unwrap();
  41.         // line 4
  42.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusShop/Common/Macro/messages.html.twig""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"4)->unwrap();
  43.         // line 1
  44.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 5
  52.     public function block_content($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  59.         // line 6
  60.         echo "<div class=\"content-client  pt-0  page-faq-content\"> 
  61.     <div class=\"image-instit-top pt-0 object-fit-img\">
  62.         <img src=\"";
  63.         // line 8
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/bg_contact.jpg"), "html"nulltrue);
  65.         echo "\" alt=\"\"/>
  66.     </div>
  67.     <div class=\"max-container-3 px-2 px-xl-4\">
  68.         
  69.         <div id=\"bitbag-faqs\" class=\" pt-md-5 pt-3 pb-md-5  pb-4 instit-page-top\">  
  70.             <div class=\"text-center pt-md-4 pt-2\">
  71.                 <h1 class=\"title-medium color-blue-s\">";
  72.         // line 14
  73.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.faq"), "html"nulltrue);
  74.         echo "</h1> 
  75.             </div>
  76.             
  77.             ";
  78.         // line 17
  79.         if ((twig_length_filter($this->env, (isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'17$this->source); })())) > 0)) {
  80.             // line 18
  81.             echo "                <div class=\"\">
  82.                     <div class=\"content-faq pt-md-5 pt-3\">
  83.                         <div id=\"accordion\">
  84.                             ";
  85.             // line 21
  86.             $context['_parent'] = $context;
  87.             $context['_seq'] = twig_ensure_traversable((isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'21$this->source); })()));
  88.             $context['loop'] = [
  89.               'parent' => $context['_parent'],
  90.               'index0' => 0,
  91.               'index'  => 1,
  92.               'first'  => true,
  93.             ];
  94.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  95.                 $length count($context['_seq']);
  96.                 $context['loop']['revindex0'] = $length 1;
  97.                 $context['loop']['revindex'] = $length;
  98.                 $context['loop']['length'] = $length;
  99.                 $context['loop']['last'] = === $length;
  100.             }
  101.             foreach ($context['_seq'] as $context["_key"] => $context["frequentlyAskedQuestion"]) {
  102.                 // line 22
  103.                 echo "                                
  104.                                 <div class=\"card rounded-0 border-0\" id=\"";
  105.                 // line 23
  106.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["frequentlyAskedQuestion"], "id", [], "any"falsefalsefalse23), "html"nulltrue);
  107.                 echo "\">
  108.                                     ";
  109.                 // line 24
  110.                 $this->loadTemplate("@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/Index/_show.html.twig""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"24)->display($context);
  111.                 // line 25
  112.                 echo "                                </div>
  113.                             ";
  114.                 ++$context['loop']['index0'];
  115.                 ++$context['loop']['index'];
  116.                 $context['loop']['first'] = false;
  117.                 if (isset($context['loop']['length'])) {
  118.                     --$context['loop']['revindex0'];
  119.                     --$context['loop']['revindex'];
  120.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  121.                 }
  122.             }
  123.             $_parent $context['_parent'];
  124.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['frequentlyAskedQuestion'], $context['_parent'], $context['loop']);
  125.             $context array_intersect_key($context$_parent) + $_parent;
  126.             // line 27
  127.             echo "                        </div>
  128.                     </div>
  129.                 </div>
  130.             ";
  131.         } else {
  132.             // line 31
  133.             echo "                <div class=\"max-container-txt m-auto text-center\"> 
  134.                     <div class=\"d-inline-block\">
  135.                         <div class=\"py-4 py-md-5 text-center\">
  136.                             ";
  137.             // line 34
  138.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 34$context$this->getSourceContext());
  139.             echo "
  140.                         </div>
  141.                     </div>
  142.                 </div>
  143.             ";
  144.         }
  145.         // line 40
  146.         echo "        </div>
  147.     </div>
  148. </div>
  149. ";
  150.         
  151.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  152.         
  153.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  154.     }
  155.     // line 45
  156.     public function block_javascripts($context, array $blocks = [])
  157.     {
  158.         $macros $this->macros;
  159.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  161.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  163.         // line 46
  164.         echo "    ";
  165.         $this->displayParentBlock("javascripts"$context$blocks);
  166.         echo "
  167.     <script>
  168.         document.addEventListener(\"DOMContentLoaded\", function() {
  169.             let url = new URL(window.location.href);
  170.             let searchParam = url.searchParams;
  171.             if (searchParam.has('id')) {
  172.                 let id = searchParam.get('id');
  173.                 document.querySelectorAll('#bitbag-faqs .card').forEach(faq=>{
  174.                     if (id === faq.id) {
  175.                         faq.querySelector('div').classList.add('open');
  176.                         faq.querySelector('div .collapse').style.display = \"block\";
  177.                     }
  178.                 })
  179.             }
  180.         });
  181.     </script>
  182. ";
  183.         
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  185.         
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  187.     }
  188.     public function getTemplateName()
  189.     {
  190.         return "@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig";
  191.     }
  192.     public function isTraitable()
  193.     {
  194.         return false;
  195.     }
  196.     public function getDebugInfo()
  197.     {
  198.         return array (  184 => 46,  174 => 45,  161 => 40,  152 => 34,  147 => 31,  141 => 27,  126 => 25,  124 => 24,  120 => 23,  117 => 22,  100 => 21,  95 => 18,  93 => 17,  87 => 14,  78 => 8,  74 => 6,  64 => 5,  53 => 1,  51 => 4,  49 => 3,  36 => 1,);
  199.     }
  200.     public function getSourceContext()
  201.     {
  202.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  203. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  204. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %} 
  205. {% block content %}
  206. <div class=\"content-client  pt-0  page-faq-content\"> 
  207.     <div class=\"image-instit-top pt-0 object-fit-img\">
  208.         <img src=\"{{ asset('images/bg_contact.jpg')}}\" alt=\"\"/>
  209.     </div>
  210.     <div class=\"max-container-3 px-2 px-xl-4\">
  211.         
  212.         <div id=\"bitbag-faqs\" class=\" pt-md-5 pt-3 pb-md-5  pb-4 instit-page-top\">  
  213.             <div class=\"text-center pt-md-4 pt-2\">
  214.                 <h1 class=\"title-medium color-blue-s\">{{ 'app.footer.faq'|trans }}</h1> 
  215.             </div>
  216.             
  217.             {% if resources|length > 0 %}
  218.                 <div class=\"\">
  219.                     <div class=\"content-faq pt-md-5 pt-3\">
  220.                         <div id=\"accordion\">
  221.                             {% for frequentlyAskedQuestion in resources %}
  222.                                 
  223.                                 <div class=\"card rounded-0 border-0\" id=\"{{frequentlyAskedQuestion.id}}\">
  224.                                     {% include '@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/Index/_show.html.twig' %}
  225.                                 </div>
  226.                             {% endfor %}
  227.                         </div>
  228.                     </div>
  229.                 </div>
  230.             {% else %}
  231.                 <div class=\"max-container-txt m-auto text-center\"> 
  232.                     <div class=\"d-inline-block\">
  233.                         <div class=\"py-4 py-md-5 text-center\">
  234.                             {{ messages.info('sylius.ui.no_results_to_display') }}
  235.                         </div>
  236.                     </div>
  237.                 </div>
  238.             {% endif %}
  239.         </div>
  240.     </div>
  241. </div>
  242. {% endblock %}
  243. {% block javascripts %}
  244.     {{ parent() }}
  245.     <script>
  246.         document.addEventListener(\"DOMContentLoaded\", function() {
  247.             let url = new URL(window.location.href);
  248.             let searchParam = url.searchParams;
  249.             if (searchParam.has('id')) {
  250.                 let id = searchParam.get('id');
  251.                 document.querySelectorAll('#bitbag-faqs .card').forEach(faq=>{
  252.                     if (id === faq.id) {
  253.                         faq.querySelector('div').classList.add('open');
  254.                         faq.querySelector('div .collapse').style.display = \"block\";
  255.                     }
  256.                 })
  257.             }
  258.         });
  259.     </script>
  260. {% endblock %}""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig");
  261.     }
  262. }