var/cache/dev/twig/03/030c593270b4fa097d692214c663680c10ded9402add68c6ee7aa06065e5bd43.php line 435

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. use Twig\TemplateWrapper;
  15. /* areas/faq-brick/view.html.twig */
  16. class __TwigTemplate_d01784f69150f687232e1e0706358e8c812329c763ca15a956230546ae671a4a extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/faq-brick/view.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/faq-brick/view.html.twig"));
  40.         // line 1
  41.         $context["withContact"] = (((array_key_exists("showContact"$context)) ? (Twig\Extension\CoreExtension::default($this->sandbox->ensureToStringAllowed((isset($context["showContact"]) || array_key_exists("showContact"$context) ? $context["showContact"] : (function () { throw new RuntimeError('Variable "showContact" does not exist.'1$this->source); })()), 1$this->source), "true")) : ("true")) == "true");
  42.         // line 2
  43.         $context["container"] = ((array_key_exists("containerSize"$context)) ? (Twig\Extension\CoreExtension::default($this->sandbox->ensureToStringAllowed((isset($context["containerSize"]) || array_key_exists("containerSize"$context) ? $context["containerSize"] : (function () { throw new RuntimeError('Variable "containerSize" does not exist.'2$this->source); })()), 2$this->source), "container")) : ("container"));
  44.         // line 3
  45.         yield "
  46. ";
  47.         // line 5
  48.         $context["faqObjects"] = ($context["faqObjects"] ?? CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""frequently-asked-questions"), "getElements", [], "method"falsefalsetrue5));
  49.         // line 6
  50.         yield "
  51. ";
  52.         // line 7
  53.         yield from $this->loadTemplate("areas/faq-brick/view.html.twig""areas/faq-brick/view.html.twig"7"1719430385")->unwrap()->yield($context);
  54.         // line 61
  55.         yield "
  56. ";
  57.         // line 62
  58.         if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["faqObjects"]) || array_key_exists("faqObjects"$context) ? $context["faqObjects"] : (function () { throw new RuntimeError('Variable "faqObjects" does not exist.'62$this->source); })()))) {
  59.             // line 63
  60.             yield "  <script type=\"application/ld+json\">
  61.     {
  62.       \"@context\": \"https://schema.org\",
  63.       \"@type\": \"FAQPage\",
  64.       \"mainEntity\": [
  65.         ";
  66.             // line 68
  67.             $context['_parent'] = $context;
  68.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["faqObjects"]) || array_key_exists("faqObjects"$context) ? $context["faqObjects"] : (function () { throw new RuntimeError('Variable "faqObjects" does not exist.'68$this->source); })()));
  69.             $context['loop'] = [
  70.               'parent' => $context['_parent'],
  71.               'index0' => 0,
  72.               'index'  => 1,
  73.               'first'  => true,
  74.             ];
  75.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  76.                 $length count($context['_seq']);
  77.                 $context['loop']['revindex0'] = $length 1;
  78.                 $context['loop']['revindex'] = $length;
  79.                 $context['loop']['length'] = $length;
  80.                 $context['loop']['last'] = === $length;
  81.             }
  82.             foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
  83.                 // line 69
  84.                 yield "          {
  85.             \"@type\": \"Question\",
  86.             \"name\": \"";
  87.                 // line 71
  88.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["faq"], "question", [], "any"falsefalsetrue71), 71$this->source), "html"nulltrue);
  89.                 yield "\",
  90.             \"acceptedAnswer\": {
  91.               \"@type\": \"Answer\",
  92.               \"text\": \"";
  93.                 // line 74
  94.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["faq"], "answer", [], "any"falsefalsetrue74), 74$this->source));
  95.                 yield "\"
  96.             }
  97.           }";
  98.                 // line 76
  99.                 if ( !CoreExtension::getAttribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue76)) {
  100.                     yield ",";
  101.                 }
  102.                 // line 77
  103.                 yield "        ";
  104.                 ++$context['loop']['index0'];
  105.                 ++$context['loop']['index'];
  106.                 $context['loop']['first'] = false;
  107.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  108.                     --$context['loop']['revindex0'];
  109.                     --$context['loop']['revindex'];
  110.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  111.                 }
  112.             }
  113.             $_parent $context['_parent'];
  114.             unset($context['_seq'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
  115.             $context array_intersect_key($context$_parent) + $_parent;
  116.             // line 78
  117.             yield "      ]
  118.     }
  119.   </script> 
  120. ";
  121.         }
  122.         
  123.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  124.         
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  126.         yield from [];
  127.     }
  128.     /**
  129.      * @codeCoverageIgnore
  130.      */
  131.     public function getTemplateName(): string
  132.     {
  133.         return "areas/faq-brick/view.html.twig";
  134.     }
  135.     /**
  136.      * @codeCoverageIgnore
  137.      */
  138.     public function isTraitable(): bool
  139.     {
  140.         return false;
  141.     }
  142.     /**
  143.      * @codeCoverageIgnore
  144.      */
  145.     public function getDebugInfo(): array
  146.     {
  147.         return array (  126 => 78,  112 => 77,  108 => 76,  103 => 74,  97 => 71,  93 => 69,  76 => 68,  69 => 63,  67 => 62,  64 => 61,  62 => 7,  59 => 6,  57 => 5,  54 => 3,  52 => 2,  50 => 1,);
  148.     }
  149.     public function getSourceContext(): Source
  150.     {
  151.         return new Source("{% set withContact = showContact | default('true') == 'true' %}
  152. {% set container = containerSize | default('container') %}
  153. {# Defined as EditableDialogBoxInterface field #}
  154. {% set faqObjects = faqObjects ?? pimcore_relations('frequently-asked-questions').getElements() %}
  155. {% embed 'app/area-brick-layout.html.twig' %}
  156.     {% block content %}
  157.         {% if editmode and faqObjects is empty %}
  158.             <div class=\"container text-center text-red\">
  159.                 <h2>Nog geen vragen gekoppeld, dit brick is momenteel niet zichtbaar.</h2>
  160.             </div>
  161.         {% elseif faqObjects is not empty %}
  162.             <section class=\"delay-200\">
  163.             <div class=\"{{ container }} {{ containerClass | default() }} flex flex-wrap py-10 md:py-20\">
  164.                 <div class=\"w-full {% if withContact %} md:w-1/2 {% endif %}\">
  165.                     {% if showAutoNotice ?? true %}
  166.                         {% include 'areas/faq-brick/partials/editmode/_no-objects-found.html.twig' %}
  167.                     {% endif %}
  168.                     {% if faqObjects is not empty %}
  169.                         <h2 class=\"mb-4 text-2xl md:mb-10 mb:text-3xl\">{{ \"Veelgestelde vragen\"|trans }}</h2>
  170.                         {% for faq in faqObjects %}
  171.                             <div class=\"px-4 mb-2 bg-white rounded-md shadow md:px-6 md:mb-3\" x-data=\"{ open: false }\">
  172.                                 <div
  173.                                     class=\"flex items-center justify-between py-6 cursor-pointer\"
  174.                                     @click=\"open = !open\"
  175.                                 >
  176.                                     <h3 class=\"mb-0 text-lg leading-tight\">{{ faq.question }}</h3>
  177.                                     <span
  178.                                         class=\"flex items-center justify-center w-8 h-8 transition-all duration-500 bg-blue-200 rounded-full shrink-0\"
  179.                                         :class=\"{ 'rotate-180' : !open }\"
  180.                                     >
  181.                                         <svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
  182.                                             <path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M.39 7.64 7.12.676c.24-.248.575-.388.926-.388.35 0 .685.14.925.388l6.732 6.964a1.206 1.206 0 0 1-.068 1.748l-.114.09a1.297 1.297 0 0 1-1.669-.154L8.045 3.316 2.239 9.323a1.295 1.295 0 0 1-1.783.065A1.205 1.205 0 0 1 .389 7.64H.39Z\"/>
  183.                                         </svg>
  184.                                     </span>
  185.                                 </div>
  186.                                 <div class=\"block overflow-hidden transition-all duration-700 max-h-0\"
  187.                                     :style=\"open ? `max-height:  \${ \$el.scrollHeight + 24 }px` : ``\"
  188.                                     :class=\"{ 'pb-6' : open }\"
  189.                                 >
  190.                                     <p>{{ faq.answer|raw }}</p>
  191.                                 </div>
  192.                             </div>
  193.                         {% endfor %}
  194.                     {% endif %}
  195.                 </div>
  196.                 {% if withContact == 'true' %}
  197.                 <div class=\"flex flex-col w-full mt-8 md:flex-row md:mt-0 md:w-1/2 lg:pl-36\">
  198.                     {% include 'includes/partials/_contact-snippet.html.twig' %}
  199.                 </div>
  200.                 {% endif %}
  201.             </div>
  202.         </section>
  203.         {% endif %}
  204.     {% endblock %}
  205. {% endembed %}
  206. {% if faqObjects is not empty %}
  207.   <script type=\"application/ld+json\">
  208.     {
  209.       \"@context\": \"https://schema.org\",
  210.       \"@type\": \"FAQPage\",
  211.       \"mainEntity\": [
  212.         {% for faq in faqObjects %}
  213.           {
  214.             \"@type\": \"Question\",
  215.             \"name\": \"{{ faq.question }}\",
  216.             \"acceptedAnswer\": {
  217.               \"@type\": \"Answer\",
  218.               \"text\": \"{{ faq.answer | raw | escape }}\"
  219.             }
  220.           }{% if not loop.last %},{% endif %}
  221.         {% endfor %}
  222.       ]
  223.     }
  224.   </script> 
  225. {% endif %}""areas/faq-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/faq-brick/view.html.twig");
  226.     }
  227.     
  228.     public function checkSecurity()
  229.     {
  230.         static $tags = ["set" => 1"embed" => 7"if" => 62"for" => 68];
  231.         static $filters = ["default" => 1"escape" => 71"raw" => 74];
  232.         static $functions = ["pimcore_relations" => 5];
  233.         try {
  234.             $this->sandbox->checkSecurity(
  235.                 ['set''embed''if''for'],
  236.                 ['default''escape''raw'],
  237.                 ['pimcore_relations'],
  238.                 $this->source
  239.             );
  240.         } catch (SecurityError $e) {
  241.             $e->setSourceContext($this->source);
  242.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  243.                 $e->setTemplateLine($tags[$e->getTagName()]);
  244.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  245.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  246.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  247.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  248.             }
  249.             throw $e;
  250.         }
  251.     }
  252. }
  253. /* areas/faq-brick/view.html.twig */
  254. class __TwigTemplate_d01784f69150f687232e1e0706358e8c812329c763ca15a956230546ae671a4a___1719430385 extends Template
  255. {
  256.     private Source $source;
  257.     /**
  258.      * @var array<string, Template>
  259.      */
  260.     private array $macros = [];
  261.     public function __construct(Environment $env)
  262.     {
  263.         parent::__construct($env);
  264.         $this->source $this->getSourceContext();
  265.         $this->blocks = [
  266.             'content' => [$this'block_content'],
  267.         ];
  268.         $this->sandbox $this->extensions[SandboxExtension::class];
  269.         $this->checkSecurity();
  270.     }
  271.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  272.     {
  273.         // line 7
  274.         return "app/area-brick-layout.html.twig";
  275.     }
  276.     protected function doDisplay(array $context, array $blocks = []): iterable
  277.     {
  278.         $macros $this->macros;
  279.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  280.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/faq-brick/view.html.twig"));
  281.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  282.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/faq-brick/view.html.twig"));
  283.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/faq-brick/view.html.twig"7);
  284.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  285.         
  286.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  287.         
  288.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  289.     }
  290.     // line 8
  291.     /**
  292.      * @return iterable<null|scalar|\Stringable>
  293.      */
  294.     public function block_content(array $context, array $blocks = []): iterable
  295.     {
  296.         $macros $this->macros;
  297.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  298.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  299.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  300.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  301.         // line 9
  302.         yield "        ";
  303.         if (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'9$this->source); })()) && Twig\Extension\CoreExtension::testEmpty((isset($context["faqObjects"]) || array_key_exists("faqObjects"$context) ? $context["faqObjects"] : (function () { throw new RuntimeError('Variable "faqObjects" does not exist.'9$this->source); })())))) {
  304.             // line 10
  305.             yield "            <div class=\"container text-center text-red\">
  306.                 <h2>Nog geen vragen gekoppeld, dit brick is momenteel niet zichtbaar.</h2>
  307.             </div>
  308.         ";
  309.         } elseif ( !Twig\Extension\CoreExtension::testEmpty(        // line 13
  310. (isset($context["faqObjects"]) || array_key_exists("faqObjects"$context) ? $context["faqObjects"] : (function () { throw new RuntimeError('Variable "faqObjects" does not exist.'13$this->source); })()))) {
  311.             // line 14
  312.             yield "            <section class=\"delay-200\">
  313.             <div class=\"";
  314.             // line 15
  315.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["container"]) || array_key_exists("container"$context) ? $context["container"] : (function () { throw new RuntimeError('Variable "container" does not exist.'15$this->source); })()), 15$this->source), "html"nulltrue);
  316.             yield " ";
  317.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("containerClass"$context)) ? (Twig\Extension\CoreExtension::default($this->sandbox->ensureToStringAllowed((isset($context["containerClass"]) || array_key_exists("containerClass"$context) ? $context["containerClass"] : (function () { throw new RuntimeError('Variable "containerClass" does not exist.'15$this->source); })()), 15$this->source))) : ("")), "html"nulltrue);
  318.             yield " flex flex-wrap py-10 md:py-20\">
  319.                 <div class=\"w-full ";
  320.             // line 16
  321.             if ((isset($context["withContact"]) || array_key_exists("withContact"$context) ? $context["withContact"] : (function () { throw new RuntimeError('Variable "withContact" does not exist.'16$this->source); })())) {
  322.                 yield " md:w-1/2 ";
  323.             }
  324.             yield "\">
  325.                     ";
  326.             // line 17
  327.             if (($context["showAutoNotice"] ?? true)) {
  328.                 // line 18
  329.                 yield "                        ";
  330.                 yield from $this->loadTemplate("areas/faq-brick/partials/editmode/_no-objects-found.html.twig""areas/faq-brick/view.html.twig"18)->unwrap()->yield($context);
  331.                 // line 19
  332.                 yield "                    ";
  333.             }
  334.             // line 20
  335.             yield "
  336.                     ";
  337.             // line 23
  338.             if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["faqObjects"]) || array_key_exists("faqObjects"$context) ? $context["faqObjects"] : (function () { throw new RuntimeError('Variable "faqObjects" does not exist.'23$this->source); })()))) {
  339.                 // line 24
  340.                 yield "                        <h2 class=\"mb-4 text-2xl md:mb-10 mb:text-3xl\">";
  341.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Veelgestelde vragen"), "html"nulltrue);
  342.                 yield "</h2>
  343.                         ";
  344.                 // line 25
  345.                 $context['_parent'] = $context;
  346.                 $context['_seq'] = CoreExtension::ensureTraversable((isset($context["faqObjects"]) || array_key_exists("faqObjects"$context) ? $context["faqObjects"] : (function () { throw new RuntimeError('Variable "faqObjects" does not exist.'25$this->source); })()));
  347.                 foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
  348.                     // line 26
  349.                     yield "                            <div class=\"px-4 mb-2 bg-white rounded-md shadow md:px-6 md:mb-3\" x-data=\"{ open: false }\">
  350.                                 <div
  351.                                     class=\"flex items-center justify-between py-6 cursor-pointer\"
  352.                                     @click=\"open = !open\"
  353.                                 >
  354.                                     <h3 class=\"mb-0 text-lg leading-tight\">";
  355.                     // line 31
  356.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["faq"], "question", [], "any"falsefalsetrue31), 31$this->source), "html"nulltrue);
  357.                     yield "</h3>
  358.                                     <span
  359.                                         class=\"flex items-center justify-center w-8 h-8 transition-all duration-500 bg-blue-200 rounded-full shrink-0\"
  360.                                         :class=\"{ 'rotate-180' : !open }\"
  361.                                     >
  362.                                         <svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
  363.                                             <path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M.39 7.64 7.12.676c.24-.248.575-.388.926-.388.35 0 .685.14.925.388l6.732 6.964a1.206 1.206 0 0 1-.068 1.748l-.114.09a1.297 1.297 0 0 1-1.669-.154L8.045 3.316 2.239 9.323a1.295 1.295 0 0 1-1.783.065A1.205 1.205 0 0 1 .389 7.64H.39Z\"/>
  364.                                         </svg>
  365.                                     </span>
  366.                                 </div>
  367.                                 <div class=\"block overflow-hidden transition-all duration-700 max-h-0\"
  368.                                     :style=\"open ? `max-height:  \${ \$el.scrollHeight + 24 }px` : ``\"
  369.                                     :class=\"{ 'pb-6' : open }\"
  370.                                 >
  371.                                     <p>";
  372.                     // line 45
  373.                     yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["faq"], "answer", [], "any"falsefalsetrue45), 45$this->source);
  374.                     yield "</p>
  375.                                 </div>
  376.                             </div>
  377.                         ";
  378.                 }
  379.                 $_parent $context['_parent'];
  380.                 unset($context['_seq'], $context['_key'], $context['faq'], $context['_parent']);
  381.                 $context array_intersect_key($context$_parent) + $_parent;
  382.                 // line 49
  383.                 yield "                    ";
  384.             }
  385.             // line 50
  386.             yield "                </div>
  387.                 ";
  388.             // line 51
  389.             if (((isset($context["withContact"]) || array_key_exists("withContact"$context) ? $context["withContact"] : (function () { throw new RuntimeError('Variable "withContact" does not exist.'51$this->source); })()) == "true")) {
  390.                 // line 52
  391.                 yield "                <div class=\"flex flex-col w-full mt-8 md:flex-row md:mt-0 md:w-1/2 lg:pl-36\">
  392.                     ";
  393.                 // line 53
  394.                 yield from $this->loadTemplate("includes/partials/_contact-snippet.html.twig""areas/faq-brick/view.html.twig"53)->unwrap()->yield($context);
  395.                 // line 54
  396.                 yield "                </div>
  397.                 ";
  398.             }
  399.             // line 56
  400.             yield "            </div>
  401.         </section>
  402.         ";
  403.         }
  404.         // line 59
  405.         yield "    ";
  406.         
  407.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  408.         
  409.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  410.         yield from [];
  411.     }
  412.     /**
  413.      * @codeCoverageIgnore
  414.      */
  415.     public function getTemplateName(): string
  416.     {
  417.         return "areas/faq-brick/view.html.twig";
  418.     }
  419.     /**
  420.      * @codeCoverageIgnore
  421.      */
  422.     public function isTraitable(): bool
  423.     {
  424.         return false;
  425.     }
  426.     /**
  427.      * @codeCoverageIgnore
  428.      */
  429.     public function getDebugInfo(): array
  430.     {
  431.         return array (  446 => 59,  441 => 56,  437 => 54,  435 => 53,  432 => 52,  430 => 51,  427 => 50,  424 => 49,  414 => 45,  397 => 31,  390 => 26,  386 => 25,  381 => 24,  379 => 23,  374 => 20,  371 => 19,  368 => 18,  366 => 17,  360 => 16,  354 => 15,  351 => 14,  349 => 13,  344 => 10,  341 => 9,  328 => 8,  305 => 7,  126 => 78,  112 => 77,  108 => 76,  103 => 74,  97 => 71,  93 => 69,  76 => 68,  69 => 63,  67 => 62,  64 => 61,  62 => 7,  59 => 6,  57 => 5,  54 => 3,  52 => 2,  50 => 1,);
  432.     }
  433.     public function getSourceContext(): Source
  434.     {
  435.         return new Source("{% set withContact = showContact | default('true') == 'true' %}
  436. {% set container = containerSize | default('container') %}
  437. {# Defined as EditableDialogBoxInterface field #}
  438. {% set faqObjects = faqObjects ?? pimcore_relations('frequently-asked-questions').getElements() %}
  439. {% embed 'app/area-brick-layout.html.twig' %}
  440.     {% block content %}
  441.         {% if editmode and faqObjects is empty %}
  442.             <div class=\"container text-center text-red\">
  443.                 <h2>Nog geen vragen gekoppeld, dit brick is momenteel niet zichtbaar.</h2>
  444.             </div>
  445.         {% elseif faqObjects is not empty %}
  446.             <section class=\"delay-200\">
  447.             <div class=\"{{ container }} {{ containerClass | default() }} flex flex-wrap py-10 md:py-20\">
  448.                 <div class=\"w-full {% if withContact %} md:w-1/2 {% endif %}\">
  449.                     {% if showAutoNotice ?? true %}
  450.                         {% include 'areas/faq-brick/partials/editmode/_no-objects-found.html.twig' %}
  451.                     {% endif %}
  452.                     {% if faqObjects is not empty %}
  453.                         <h2 class=\"mb-4 text-2xl md:mb-10 mb:text-3xl\">{{ \"Veelgestelde vragen\"|trans }}</h2>
  454.                         {% for faq in faqObjects %}
  455.                             <div class=\"px-4 mb-2 bg-white rounded-md shadow md:px-6 md:mb-3\" x-data=\"{ open: false }\">
  456.                                 <div
  457.                                     class=\"flex items-center justify-between py-6 cursor-pointer\"
  458.                                     @click=\"open = !open\"
  459.                                 >
  460.                                     <h3 class=\"mb-0 text-lg leading-tight\">{{ faq.question }}</h3>
  461.                                     <span
  462.                                         class=\"flex items-center justify-center w-8 h-8 transition-all duration-500 bg-blue-200 rounded-full shrink-0\"
  463.                                         :class=\"{ 'rotate-180' : !open }\"
  464.                                     >
  465.                                         <svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
  466.                                             <path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M.39 7.64 7.12.676c.24-.248.575-.388.926-.388.35 0 .685.14.925.388l6.732 6.964a1.206 1.206 0 0 1-.068 1.748l-.114.09a1.297 1.297 0 0 1-1.669-.154L8.045 3.316 2.239 9.323a1.295 1.295 0 0 1-1.783.065A1.205 1.205 0 0 1 .389 7.64H.39Z\"/>
  467.                                         </svg>
  468.                                     </span>
  469.                                 </div>
  470.                                 <div class=\"block overflow-hidden transition-all duration-700 max-h-0\"
  471.                                     :style=\"open ? `max-height:  \${ \$el.scrollHeight + 24 }px` : ``\"
  472.                                     :class=\"{ 'pb-6' : open }\"
  473.                                 >
  474.                                     <p>{{ faq.answer|raw }}</p>
  475.                                 </div>
  476.                             </div>
  477.                         {% endfor %}
  478.                     {% endif %}
  479.                 </div>
  480.                 {% if withContact == 'true' %}
  481.                 <div class=\"flex flex-col w-full mt-8 md:flex-row md:mt-0 md:w-1/2 lg:pl-36\">
  482.                     {% include 'includes/partials/_contact-snippet.html.twig' %}
  483.                 </div>
  484.                 {% endif %}
  485.             </div>
  486.         </section>
  487.         {% endif %}
  488.     {% endblock %}
  489. {% endembed %}
  490. {% if faqObjects is not empty %}
  491.   <script type=\"application/ld+json\">
  492.     {
  493.       \"@context\": \"https://schema.org\",
  494.       \"@type\": \"FAQPage\",
  495.       \"mainEntity\": [
  496.         {% for faq in faqObjects %}
  497.           {
  498.             \"@type\": \"Question\",
  499.             \"name\": \"{{ faq.question }}\",
  500.             \"acceptedAnswer\": {
  501.               \"@type\": \"Answer\",
  502.               \"text\": \"{{ faq.answer | raw | escape }}\"
  503.             }
  504.           }{% if not loop.last %},{% endif %}
  505.         {% endfor %}
  506.       ]
  507.     }
  508.   </script> 
  509. {% endif %}""areas/faq-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/faq-brick/view.html.twig");
  510.     }
  511.     
  512.     public function checkSecurity()
  513.     {
  514.         static $tags = ["extends" => 7"if" => 9"include" => 18"for" => 25];
  515.         static $filters = ["escape" => 15"default" => 15"trans" => 24"raw" => 45];
  516.         static $functions = [];
  517.         try {
  518.             $this->sandbox->checkSecurity(
  519.                 ['extends''if''include''for'],
  520.                 ['escape''default''trans''raw'],
  521.                 [],
  522.                 $this->source
  523.             );
  524.         } catch (SecurityError $e) {
  525.             $e->setSourceContext($this->source);
  526.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  527.                 $e->setTemplateLine($tags[$e->getTagName()]);
  528.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  529.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  530.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  531.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  532.             }
  533.             throw $e;
  534.         }
  535.     }
  536. }