var/cache/dev/twig/ec/ecacf183a2f0eca4fca99f98371d08fd.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* ecom/faq.html.twig */
  15. class __TwigTemplate_2eb9a0e70fa2581bc1d2957fd2bfca4e extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ecom/faq.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ecom/faq.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""ecom/faq.html.twig"1);
  40.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 2
  47.     public function block_body($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  54.         // line 3
  55.         yield "  <section class=\"h-collections pt-5 mt-4 mb-3\">
  56.     <div class=\"container\">
  57.       <div class=\"col-md-8 offset-md-2\">
  58.         <h2 class=\"secondtxt text-uppercase mb-4 pb-2 inner-title\"><span class=\"titleline bg-secondary d-inline-block position-relative me-2\"></span> Frequently Asked Questions</h2>
  59.         </div>
  60.     </div>
  61.     <div class=\"container mt-2 pt-5\">
  62.         ";
  63.         // line 10
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["faq_categories"]) || array_key_exists("faq_categories"$context) ? $context["faq_categories"] : (function () { throw new RuntimeError('Variable "faq_categories" does not exist.'10$this->source); })()));
  66.         foreach ($context['_seq'] as $context["_key"] => $context["faq_category"]) {
  67.             // line 11
  68.             yield "        <div class=\"row faqholder\">
  69.           <div class=\"col-md-4\"><big class=\"border-top border-3 border-dark d-inline-block pt-2 fw-bold fs-5\">";
  70.             // line 12
  71.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["faq_category"], "name", [], "any"falsefalsefalse12), "html"nulltrue);
  72.             yield "</big></div>
  73.           <div class=\"col-md-8 ps-4\">
  74.             <div class=\"accordion\" >
  75.               ";
  76.             // line 15
  77.             $context['_parent'] = $context;
  78.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["faqs"]) || array_key_exists("faqs"$context) ? $context["faqs"] : (function () { throw new RuntimeError('Variable "faqs" does not exist.'15$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["faq_category"], "id", [], "any"falsefalsefalse15), [], "array"falsefalsefalse15));
  79.             foreach ($context['_seq'] as $context["k"] => $context["faq"]) {
  80.                 // line 16
  81.                 yield "              <div class=\"accordion-item\">
  82.                 <h2 class=\"accordion-header\" id=\"headingOne\">
  83.                   <button class=\"accordion-button collapsed border-0 border-top border-3 border-dark rounded-0 ps-0 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse";
  84.                 // line 18
  85.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse18), "html"nulltrue);
  86.                 yield "\" aria-expanded=\"true\" aria-controls=\"collapseOne\"> ";
  87.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["faq"], "title", [], "any"falsefalsefalse18), "html"nulltrue);
  88.                 yield " </button>
  89.                 </h2>
  90.                 <div id=\"collapse";
  91.                 // line 20
  92.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["faq"], "id", [], "any"falsefalsefalse20), "html"nulltrue);
  93.                 yield "\" class=\"accordion-collapse collapse border-0\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
  94.                   <div class=\"accordion-body ps-0 pt-0\"> ";
  95.                 // line 21
  96.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["faq"], "description", [], "any"falsefalsefalse21), "html"nulltrue);
  97.                 yield " </div>
  98.                 </div>
  99.               </div>
  100.               ";
  101.             }
  102.             $_parent $context['_parent'];
  103.             unset($context['_seq'], $context['_iterated'], $context['k'], $context['faq'], $context['_parent'], $context['loop']);
  104.             $context array_intersect_key($context$_parent) + $_parent;
  105.             // line 25
  106.             yield "            </div>
  107.           </div>
  108.         </div>
  109.         ";
  110.         }
  111.         $_parent $context['_parent'];
  112.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq_category'], $context['_parent'], $context['loop']);
  113.         $context array_intersect_key($context$_parent) + $_parent;
  114.         // line 29
  115.         yield "      </div>
  116.   </section>
  117. ";
  118.         
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.         return; yield '';
  123.     }
  124.     /**
  125.      * @codeCoverageIgnore
  126.      */
  127.     public function getTemplateName()
  128.     {
  129.         return "ecom/faq.html.twig";
  130.     }
  131.     /**
  132.      * @codeCoverageIgnore
  133.      */
  134.     public function isTraitable()
  135.     {
  136.         return false;
  137.     }
  138.     /**
  139.      * @codeCoverageIgnore
  140.      */
  141.     public function getDebugInfo()
  142.     {
  143.         return array (  129 => 29,  120 => 25,  110 => 21,  106 => 20,  99 => 18,  95 => 16,  91 => 15,  85 => 12,  82 => 11,  78 => 10,  69 => 3,  59 => 2,  36 => 1,);
  144.     }
  145.     public function getSourceContext()
  146.     {
  147.         return new Source("{% extends 'base.html.twig' %}
  148. {% block body %}
  149.   <section class=\"h-collections pt-5 mt-4 mb-3\">
  150.     <div class=\"container\">
  151.       <div class=\"col-md-8 offset-md-2\">
  152.         <h2 class=\"secondtxt text-uppercase mb-4 pb-2 inner-title\"><span class=\"titleline bg-secondary d-inline-block position-relative me-2\"></span> Frequently Asked Questions</h2>
  153.         </div>
  154.     </div>
  155.     <div class=\"container mt-2 pt-5\">
  156.         {% for faq_category in faq_categories %}
  157.         <div class=\"row faqholder\">
  158.           <div class=\"col-md-4\"><big class=\"border-top border-3 border-dark d-inline-block pt-2 fw-bold fs-5\">{{ faq_category.name }}</big></div>
  159.           <div class=\"col-md-8 ps-4\">
  160.             <div class=\"accordion\" >
  161.               {% for k, faq in faqs[faq_category.id] %}
  162.               <div class=\"accordion-item\">
  163.                 <h2 class=\"accordion-header\" id=\"headingOne\">
  164.                   <button class=\"accordion-button collapsed border-0 border-top border-3 border-dark rounded-0 ps-0 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse{{faq.id}}\" aria-expanded=\"true\" aria-controls=\"collapseOne\"> {{ faq.title }} </button>
  165.                 </h2>
  166.                 <div id=\"collapse{{faq.id}}\" class=\"accordion-collapse collapse border-0\" aria-labelledby=\"headingOne\" data-bs-parent=\"#accordionExample\">
  167.                   <div class=\"accordion-body ps-0 pt-0\"> {{ faq.description }} </div>
  168.                 </div>
  169.               </div>
  170.               {% endfor %}
  171.             </div>
  172.           </div>
  173.         </div>
  174.         {% endfor %}
  175.       </div>
  176.   </section>
  177. {% endblock %}""ecom/faq.html.twig""/var/www/commerce8/noble_natives/templates/ecom/faq.html.twig");
  178.     }
  179. }