<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* areas/faq-brick/view.html.twig */
class __TwigTemplate_d01784f69150f687232e1e0706358e8c812329c763ca15a956230546ae671a4a extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/faq-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/faq-brick/view.html.twig"));
// line 1
$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");
// line 2
$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"));
// line 3
yield "
";
// line 5
$context["faqObjects"] = ($context["faqObjects"] ?? CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "frequently-asked-questions"), "getElements", [], "method", false, false, true, 5));
// line 6
yield "
";
// line 7
yield from $this->loadTemplate("areas/faq-brick/view.html.twig", "areas/faq-brick/view.html.twig", 7, "1719430385")->unwrap()->yield($context);
// line 61
yield "
";
// line 62
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); })()))) {
// line 63
yield " <script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"FAQPage\",
\"mainEntity\": [
";
// line 68
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
// line 69
yield " {
\"@type\": \"Question\",
\"name\": \"";
// line 71
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, true, 71), 71, $this->source), "html", null, true);
yield "\",
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": \"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "answer", [], "any", false, false, true, 74), 74, $this->source));
yield "\"
}
}";
// line 76
if ( !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 76)) {
yield ",";
}
// line 77
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 78
yield " ]
}
</script>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/faq-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% set withContact = showContact | default('true') == 'true' %}
{% set container = containerSize | default('container') %}
{# Defined as EditableDialogBoxInterface field #}
{% set faqObjects = faqObjects ?? pimcore_relations('frequently-asked-questions').getElements() %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% if editmode and faqObjects is empty %}
<div class=\"container text-center text-red\">
<h2>Nog geen vragen gekoppeld, dit brick is momenteel niet zichtbaar.</h2>
</div>
{% elseif faqObjects is not empty %}
<section class=\"delay-200\">
<div class=\"{{ container }} {{ containerClass | default() }} flex flex-wrap py-10 md:py-20\">
<div class=\"w-full {% if withContact %} md:w-1/2 {% endif %}\">
{% if showAutoNotice ?? true %}
{% include 'areas/faq-brick/partials/editmode/_no-objects-found.html.twig' %}
{% endif %}
{% if faqObjects is not empty %}
<h2 class=\"mb-4 text-2xl md:mb-10 mb:text-3xl\">{{ \"Veelgestelde vragen\"|trans }}</h2>
{% for faq in faqObjects %}
<div class=\"px-4 mb-2 bg-white rounded-md shadow md:px-6 md:mb-3\" x-data=\"{ open: false }\">
<div
class=\"flex items-center justify-between py-6 cursor-pointer\"
@click=\"open = !open\"
>
<h3 class=\"mb-0 text-lg leading-tight\">{{ faq.question }}</h3>
<span
class=\"flex items-center justify-center w-8 h-8 transition-all duration-500 bg-blue-200 rounded-full shrink-0\"
:class=\"{ 'rotate-180' : !open }\"
>
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
<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\"/>
</svg>
</span>
</div>
<div class=\"block overflow-hidden transition-all duration-700 max-h-0\"
:style=\"open ? `max-height: \${ \$el.scrollHeight + 24 }px` : ``\"
:class=\"{ 'pb-6' : open }\"
>
<p>{{ faq.answer|raw }}</p>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% if withContact == 'true' %}
<div class=\"flex flex-col w-full mt-8 md:flex-row md:mt-0 md:w-1/2 lg:pl-36\">
{% include 'includes/partials/_contact-snippet.html.twig' %}
</div>
{% endif %}
</div>
</section>
{% endif %}
{% endblock %}
{% endembed %}
{% if faqObjects is not empty %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"FAQPage\",
\"mainEntity\": [
{% for faq in faqObjects %}
{
\"@type\": \"Question\",
\"name\": \"{{ faq.question }}\",
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": \"{{ faq.answer | raw | escape }}\"
}
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
</script>
{% endif %}", "areas/faq-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/faq-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["set" => 1, "embed" => 7, "if" => 62, "for" => 68];
static $filters = ["default" => 1, "escape" => 71, "raw" => 74];
static $functions = ["pimcore_relations" => 5];
try {
$this->sandbox->checkSecurity(
['set', 'embed', 'if', 'for'],
['default', 'escape', 'raw'],
['pimcore_relations'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}
/* areas/faq-brick/view.html.twig */
class __TwigTemplate_d01784f69150f687232e1e0706358e8c812329c763ca15a956230546ae671a4a___1719430385 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 7
return "app/area-brick-layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/faq-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/faq-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/faq-brick/view.html.twig", 7);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
yield " ";
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); })())))) {
// line 10
yield " <div class=\"container text-center text-red\">
<h2>Nog geen vragen gekoppeld, dit brick is momenteel niet zichtbaar.</h2>
</div>
";
} elseif ( !Twig\Extension\CoreExtension::testEmpty( // line 13
(isset($context["faqObjects"]) || array_key_exists("faqObjects", $context) ? $context["faqObjects"] : (function () { throw new RuntimeError('Variable "faqObjects" does not exist.', 13, $this->source); })()))) {
// line 14
yield " <section class=\"delay-200\">
<div class=\"";
// line 15
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", null, true);
yield " ";
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", null, true);
yield " flex flex-wrap py-10 md:py-20\">
<div class=\"w-full ";
// line 16
if ((isset($context["withContact"]) || array_key_exists("withContact", $context) ? $context["withContact"] : (function () { throw new RuntimeError('Variable "withContact" does not exist.', 16, $this->source); })())) {
yield " md:w-1/2 ";
}
yield "\">
";
// line 17
if (($context["showAutoNotice"] ?? true)) {
// line 18
yield " ";
yield from $this->loadTemplate("areas/faq-brick/partials/editmode/_no-objects-found.html.twig", "areas/faq-brick/view.html.twig", 18)->unwrap()->yield($context);
// line 19
yield " ";
}
// line 20
yield "
";
// line 23
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); })()))) {
// line 24
yield " <h2 class=\"mb-4 text-2xl md:mb-10 mb:text-3xl\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Veelgestelde vragen"), "html", null, true);
yield "</h2>
";
// line 25
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
// line 26
yield " <div class=\"px-4 mb-2 bg-white rounded-md shadow md:px-6 md:mb-3\" x-data=\"{ open: false }\">
<div
class=\"flex items-center justify-between py-6 cursor-pointer\"
@click=\"open = !open\"
>
<h3 class=\"mb-0 text-lg leading-tight\">";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, true, 31), 31, $this->source), "html", null, true);
yield "</h3>
<span
class=\"flex items-center justify-center w-8 h-8 transition-all duration-500 bg-blue-200 rounded-full shrink-0\"
:class=\"{ 'rotate-180' : !open }\"
>
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
<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\"/>
</svg>
</span>
</div>
<div class=\"block overflow-hidden transition-all duration-700 max-h-0\"
:style=\"open ? `max-height: \${ \$el.scrollHeight + 24 }px` : ``\"
:class=\"{ 'pb-6' : open }\"
>
<p>";
// line 45
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "answer", [], "any", false, false, true, 45), 45, $this->source);
yield "</p>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['faq'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
yield " ";
}
// line 50
yield " </div>
";
// line 51
if (((isset($context["withContact"]) || array_key_exists("withContact", $context) ? $context["withContact"] : (function () { throw new RuntimeError('Variable "withContact" does not exist.', 51, $this->source); })()) == "true")) {
// line 52
yield " <div class=\"flex flex-col w-full mt-8 md:flex-row md:mt-0 md:w-1/2 lg:pl-36\">
";
// line 53
yield from $this->loadTemplate("includes/partials/_contact-snippet.html.twig", "areas/faq-brick/view.html.twig", 53)->unwrap()->yield($context);
// line 54
yield " </div>
";
}
// line 56
yield " </div>
</section>
";
}
// line 59
yield " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/faq-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% set withContact = showContact | default('true') == 'true' %}
{% set container = containerSize | default('container') %}
{# Defined as EditableDialogBoxInterface field #}
{% set faqObjects = faqObjects ?? pimcore_relations('frequently-asked-questions').getElements() %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% if editmode and faqObjects is empty %}
<div class=\"container text-center text-red\">
<h2>Nog geen vragen gekoppeld, dit brick is momenteel niet zichtbaar.</h2>
</div>
{% elseif faqObjects is not empty %}
<section class=\"delay-200\">
<div class=\"{{ container }} {{ containerClass | default() }} flex flex-wrap py-10 md:py-20\">
<div class=\"w-full {% if withContact %} md:w-1/2 {% endif %}\">
{% if showAutoNotice ?? true %}
{% include 'areas/faq-brick/partials/editmode/_no-objects-found.html.twig' %}
{% endif %}
{% if faqObjects is not empty %}
<h2 class=\"mb-4 text-2xl md:mb-10 mb:text-3xl\">{{ \"Veelgestelde vragen\"|trans }}</h2>
{% for faq in faqObjects %}
<div class=\"px-4 mb-2 bg-white rounded-md shadow md:px-6 md:mb-3\" x-data=\"{ open: false }\">
<div
class=\"flex items-center justify-between py-6 cursor-pointer\"
@click=\"open = !open\"
>
<h3 class=\"mb-0 text-lg leading-tight\">{{ faq.question }}</h3>
<span
class=\"flex items-center justify-center w-8 h-8 transition-all duration-500 bg-blue-200 rounded-full shrink-0\"
:class=\"{ 'rotate-180' : !open }\"
>
<svg class=\"w-4 h-3\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 17 10\">
<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\"/>
</svg>
</span>
</div>
<div class=\"block overflow-hidden transition-all duration-700 max-h-0\"
:style=\"open ? `max-height: \${ \$el.scrollHeight + 24 }px` : ``\"
:class=\"{ 'pb-6' : open }\"
>
<p>{{ faq.answer|raw }}</p>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% if withContact == 'true' %}
<div class=\"flex flex-col w-full mt-8 md:flex-row md:mt-0 md:w-1/2 lg:pl-36\">
{% include 'includes/partials/_contact-snippet.html.twig' %}
</div>
{% endif %}
</div>
</section>
{% endif %}
{% endblock %}
{% endembed %}
{% if faqObjects is not empty %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"FAQPage\",
\"mainEntity\": [
{% for faq in faqObjects %}
{
\"@type\": \"Question\",
\"name\": \"{{ faq.question }}\",
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": \"{{ faq.answer | raw | escape }}\"
}
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
</script>
{% endif %}", "areas/faq-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/faq-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 7, "if" => 9, "include" => 18, "for" => 25];
static $filters = ["escape" => 15, "default" => 15, "trans" => 24, "raw" => 45];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['extends', 'if', 'include', 'for'],
['escape', 'default', 'trans', 'raw'],
[],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}