<?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;
/* document/static_page/faq.html.twig */
class __TwigTemplate_ac2cd5531361edfd19f74be5f56f297f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'contentBlock' => [$this, 'block_contentBlock'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/static_page/faq.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/static_page/faq.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/static_page/faq.html.twig"));
$this->parent = $this->loadTemplate("layout/default.html.twig", "document/static_page/faq.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_contentBlock($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
// line 4
yield "<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">";
// line 8
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "staticPage--heading", ["placeholder" => "Heading..."]);
yield "</h4>
";
// line 9
yield from $this->loadTemplate("document/static_page/sidebar/sidebar.html.twig", "document/static_page/faq.html.twig", 9)->unwrap()->yield($context);
// line 10
yield " </div>
<div class=\"col-lg-6\">
<div class=\"mb-4 mb-lg-4 mb-md-4\">
<h1 class=\"font-italic font-weight-bold\">
";
// line 14
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "heading", ["height" => 150, "placeholder" => "Heading"]);
// line 18
yield "
</h1>
</div>
<div class=\"row\">
";
// line 23
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "contentblock", ["class" => "col-lg-12 py-4 py-lg-4 py-md-4"])));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 24
yield " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 24, $this->source); })())) {
// line 25
yield " <div class=\"col-lg-12 py-4 py-lg-4 py-md-4 border-bottom border-2 border-lightGray\">
";
}
// line 27
yield " <div class=\"d-flex align-items-center\">
<h3 class=\"font-weight-bold mb-0\" style=\"max-width: 90%;\">
";
// line 29
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", ("faq-question" . $this->sandbox->ensureToStringAllowed($context["i"], 29, $this->source)), ["height" => 150, "placeholder" => "Question..."]);
// line 33
yield "
</h3>
<a class=\"collapse-close ml-auto collapsed\" data-toggle=\"collapse\" href=\"#faqCollapse-";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed($context["i"], 35, $this->source), "html", null, true);
yield "\" role=\"button\" aria-expanded=\"false\" aria-controls=\"faqCollapse\">
</a>
</div>
<div class=\"row collapse mt-2 mt-lg-2 mt-md-2\" id=\"faqCollapse-";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed($context["i"], 38, $this->source), "html", null, true);
yield "\">
<div class=\"col-lg-12 text-deepGray\">
";
// line 40
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", ("faq-answer" . $this->sandbox->ensureToStringAllowed($context["i"], 40, $this->source)), ["height" => 100, "placeholder" => "Answer..."]);
// line 43
yield "
</div>
";
// line 46
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 46, $this->source); })())) {
// line 47
yield " <div class=\"col-lg-12\">
";
}
// line 49
yield "
";
// line 50
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "videoBlock", ["class" => "faq-video-wrapper row"])));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 51
yield " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 51, $this->source); })())) {
// line 52
yield " <div class=\"col-lg-6\">
";
}
// line 54
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", ("campaignVideo" . $this->sandbox->ensureToStringAllowed($context["i"], 54, $this->source)));
yield "
";
// line 55
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 55, $this->source); })())) {
// line 56
yield " </div>
";
}
// line 58
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
yield "
";
// line 60
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 60, $this->source); })())) {
// line 61
yield " </div>
";
}
// line 63
yield "
</div>
";
// line 65
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 65, $this->source); })())) {
// line 66
yield " </div>
";
}
// line 68
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
yield " </div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "document/static_page/faq.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 208 => 69, 202 => 68, 198 => 66, 196 => 65, 192 => 63, 188 => 61, 186 => 60, 183 => 59, 177 => 58, 173 => 56, 171 => 55, 166 => 54, 162 => 52, 159 => 51, 155 => 50, 152 => 49, 148 => 47, 146 => 46, 141 => 43, 139 => 40, 134 => 38, 128 => 35, 124 => 33, 122 => 29, 118 => 27, 114 => 25, 111 => 24, 107 => 23, 100 => 18, 98 => 14, 92 => 10, 90 => 9, 86 => 8, 80 => 4, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">{{ pimcore_input('staticPage--heading',{placeholder: 'Heading...'}) }}</h4>
{% include 'document/static_page/sidebar/sidebar.html.twig' %}
</div>
<div class=\"col-lg-6\">
<div class=\"mb-4 mb-lg-4 mb-md-4\">
<h1 class=\"font-italic font-weight-bold\">
{{ pimcore_input('heading',{
\"height\": 150,
\"placeholder\": \"Heading\"
})
}}
</h1>
</div>
<div class=\"row\">
{% for i in pimcore_iterate_block(pimcore_block('contentblock', {class: 'col-lg-12 py-4 py-lg-4 py-md-4'})) %}
{% if not editmode %}
<div class=\"col-lg-12 py-4 py-lg-4 py-md-4 border-bottom border-2 border-lightGray\">
{% endif %}
<div class=\"d-flex align-items-center\">
<h3 class=\"font-weight-bold mb-0\" style=\"max-width: 90%;\">
{{ pimcore_input('faq-question' ~ i,{
\"height\": 150,
\"placeholder\": \"Question...\"
})
}}
</h3>
<a class=\"collapse-close ml-auto collapsed\" data-toggle=\"collapse\" href=\"#faqCollapse-{{ i }}\" role=\"button\" aria-expanded=\"false\" aria-controls=\"faqCollapse\">
</a>
</div>
<div class=\"row collapse mt-2 mt-lg-2 mt-md-2\" id=\"faqCollapse-{{ i }}\">
<div class=\"col-lg-12 text-deepGray\">
{{ pimcore_wysiwyg('faq-answer' ~ i,{
\"height\": 100,
\"placeholder\": \"Answer...\"
}) }}
</div>
{% if editmode %}
<div class=\"col-lg-12\">
{% endif %}
{% for i in pimcore_iterate_block(pimcore_block('videoBlock', {class: 'faq-video-wrapper row'})) %}
{% if not editmode %}
<div class=\"col-lg-6\">
{% endif %}
{{ pimcore_video('campaignVideo' ~ i) }}
{% if not editmode %}
</div>
{% endif %}
{% endfor %}
{% if editmode %}
</div>
{% endif %}
</div>
{% if not editmode %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "document/static_page/faq.html.twig", "/var/www/webovi/stoelting/pimcore/templates/document/static_page/faq.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 9, "for" => 23, "if" => 24);
static $filters = array("escape" => 35);
static $functions = array("pimcore_input" => 8, "pimcore_iterate_block" => 23, "pimcore_block" => 23, "pimcore_wysiwyg" => 40, "pimcore_video" => 54);
try {
$this->sandbox->checkSecurity(
['include', 'for', 'if'],
['escape'],
['pimcore_input', 'pimcore_iterate_block', 'pimcore_block', 'pimcore_wysiwyg', 'pimcore_video'],
$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;
}
}
}