var/cache/dev/twig/9d/9d88059cfa96920ecec7d7f697f5b7b9.php line 54

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. /* document/static_page/faq.html.twig */
  15. class __TwigTemplate_ac2cd5531361edfd19f74be5f56f297f 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.             'contentBlock' => [$this'block_contentBlock'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout/default.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""document/static_page/faq.html.twig"));
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""document/static_page/faq.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""document/static_page/faq.html.twig"));
  43.         $this->parent $this->loadTemplate("layout/default.html.twig""document/static_page/faq.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_contentBlock($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  62.         // line 4
  63.         yield "<div class=\"staticPage\">
  64.     <div class=\"container my-5 my-lg-5 my-md-5\">
  65.         <div class=\"row\">
  66.             <div class=\"col-lg-3\">
  67.                 <h4 class=\"font-weight-bold text-uppercase\">";
  68.         // line 8
  69.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""staticPage--heading", ["placeholder" => "Heading..."]);
  70.         yield "</h4>
  71.                 ";
  72.         // line 9
  73.         yield from         $this->loadTemplate("document/static_page/sidebar/sidebar.html.twig""document/static_page/faq.html.twig"9)->unwrap()->yield($context);
  74.         // line 10
  75.         yield "            </div>
  76.             <div class=\"col-lg-6\">
  77.                 <div class=\"mb-4 mb-lg-4 mb-md-4\">
  78.                     <h1 class=\"font-italic font-weight-bold\">
  79.                         ";
  80.         // line 14
  81.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""heading", ["height" => 150"placeholder" => "Heading"]);
  82.         // line 18
  83.         yield "
  84.                     </h1>
  85.                 </div>
  86.                 <div class=\"row\">
  87.                     ";
  88.         // line 23
  89.         $context['_parent'] = $context;
  90.         $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"])));
  91.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  92.             // line 24
  93.             yield "                        ";
  94.             if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'24$this->source); })())) {
  95.                 // line 25
  96.                 yield "                            <div class=\"col-lg-12 py-4 py-lg-4 py-md-4 border-bottom border-2 border-lightGray\">
  97.                         ";
  98.             }
  99.             // line 27
  100.             yield "                            <div class=\"d-flex align-items-center\">
  101.                                 <h3 class=\"font-weight-bold mb-0\" style=\"max-width: 90%;\">
  102.                                     ";
  103.             // line 29
  104.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input", ("faq-question" $this->sandbox->ensureToStringAllowed($context["i"], 29$this->source)), ["height" => 150"placeholder" => "Question..."]);
  105.             // line 33
  106.             yield "
  107.                                 </h3>
  108.                                 <a class=\"collapse-close ml-auto collapsed\" data-toggle=\"collapse\" href=\"#faqCollapse-";
  109.             // line 35
  110.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed($context["i"], 35$this->source), "html"nulltrue);
  111.             yield "\" role=\"button\" aria-expanded=\"false\" aria-controls=\"faqCollapse\">
  112.                                 </a>
  113.                             </div>
  114.                             <div class=\"row collapse mt-2 mt-lg-2 mt-md-2\" id=\"faqCollapse-";
  115.             // line 38
  116.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed($context["i"], 38$this->source), "html"nulltrue);
  117.             yield "\">
  118.                                 <div class=\"col-lg-12 text-deepGray\">
  119.                                     ";
  120.             // line 40
  121.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg", ("faq-answer" $this->sandbox->ensureToStringAllowed($context["i"], 40$this->source)), ["height" => 100"placeholder" => "Answer..."]);
  122.             // line 43
  123.             yield "
  124.                                 </div>
  125.                                 ";
  126.             // line 46
  127.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'46$this->source); })())) {
  128.                 // line 47
  129.                 yield "                                    <div class=\"col-lg-12\">
  130.                                 ";
  131.             }
  132.             // line 49
  133.             yield "
  134.                                     ";
  135.             // line 50
  136.             $context['_parent'] = $context;
  137.             $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"])));
  138.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  139.                 // line 51
  140.                 yield "                                        ";
  141.                 if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'51$this->source); })())) {
  142.                     // line 52
  143.                     yield "                                            <div class=\"col-lg-6\">
  144.                                         ";
  145.                 }
  146.                 // line 54
  147.                 yield "                                            ";
  148.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video", ("campaignVideo" $this->sandbox->ensureToStringAllowed($context["i"], 54$this->source)));
  149.                 yield "
  150.                                         ";
  151.                 // line 55
  152.                 if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'55$this->source); })())) {
  153.                     // line 56
  154.                     yield "                                            </div>
  155.                                         ";
  156.                 }
  157.                 // line 58
  158.                 yield "                                    ";
  159.             }
  160.             $_parent $context['_parent'];
  161.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  162.             $context array_intersect_key($context$_parent) + $_parent;
  163.             // line 59
  164.             yield "
  165.                                 ";
  166.             // line 60
  167.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'60$this->source); })())) {
  168.                 // line 61
  169.                 yield "                                    </div>
  170.                                 ";
  171.             }
  172.             // line 63
  173.             yield "
  174.                             </div>
  175.                         ";
  176.             // line 65
  177.             if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'65$this->source); })())) {
  178.                 // line 66
  179.                 yield "                            </div>
  180.                         ";
  181.             }
  182.             // line 68
  183.             yield "                    ";
  184.         }
  185.         $_parent $context['_parent'];
  186.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  187.         $context array_intersect_key($context$_parent) + $_parent;
  188.         // line 69
  189.         yield "                </div>
  190.             </div>
  191.         </div>
  192.     </div>
  193. </div>
  194. ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.         
  200.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  201.         return; yield '';
  202.     }
  203.     /**
  204.      * @codeCoverageIgnore
  205.      */
  206.     public function getTemplateName()
  207.     {
  208.         return "document/static_page/faq.html.twig";
  209.     }
  210.     /**
  211.      * @codeCoverageIgnore
  212.      */
  213.     public function isTraitable()
  214.     {
  215.         return false;
  216.     }
  217.     /**
  218.      * @codeCoverageIgnore
  219.      */
  220.     public function getDebugInfo()
  221.     {
  222.         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,);
  223.     }
  224.     public function getSourceContext()
  225.     {
  226.         return new Source("{% extends 'layout/default.html.twig' %}
  227. {% block contentBlock %}
  228. <div class=\"staticPage\">
  229.     <div class=\"container my-5 my-lg-5 my-md-5\">
  230.         <div class=\"row\">
  231.             <div class=\"col-lg-3\">
  232.                 <h4 class=\"font-weight-bold text-uppercase\">{{ pimcore_input('staticPage--heading',{placeholder: 'Heading...'}) }}</h4>
  233.                 {% include 'document/static_page/sidebar/sidebar.html.twig' %}
  234.             </div>
  235.             <div class=\"col-lg-6\">
  236.                 <div class=\"mb-4 mb-lg-4 mb-md-4\">
  237.                     <h1 class=\"font-italic font-weight-bold\">
  238.                         {{ pimcore_input('heading',{
  239.                                 \"height\": 150,
  240.                                 \"placeholder\": \"Heading\"
  241.                             })
  242.                         }}
  243.                     </h1>
  244.                 </div>
  245.                 <div class=\"row\">
  246.                     {% for i in pimcore_iterate_block(pimcore_block('contentblock', {class: 'col-lg-12 py-4 py-lg-4 py-md-4'})) %}
  247.                         {% if not editmode %}
  248.                             <div class=\"col-lg-12 py-4 py-lg-4 py-md-4 border-bottom border-2 border-lightGray\">
  249.                         {% endif %}
  250.                             <div class=\"d-flex align-items-center\">
  251.                                 <h3 class=\"font-weight-bold mb-0\" style=\"max-width: 90%;\">
  252.                                     {{ pimcore_input('faq-question' ~  i,{
  253.                                             \"height\": 150,
  254.                                             \"placeholder\": \"Question...\"
  255.                                         })
  256.                                     }}
  257.                                 </h3>
  258.                                 <a class=\"collapse-close ml-auto collapsed\" data-toggle=\"collapse\" href=\"#faqCollapse-{{ i }}\" role=\"button\" aria-expanded=\"false\" aria-controls=\"faqCollapse\">
  259.                                 </a>
  260.                             </div>
  261.                             <div class=\"row collapse mt-2 mt-lg-2 mt-md-2\" id=\"faqCollapse-{{ i }}\">
  262.                                 <div class=\"col-lg-12 text-deepGray\">
  263.                                     {{ pimcore_wysiwyg('faq-answer' ~ i,{
  264.                                         \"height\": 100,
  265.                                         \"placeholder\": \"Answer...\"
  266.                                     }) }}
  267.                                 </div>
  268.                                 {% if editmode %}
  269.                                     <div class=\"col-lg-12\">
  270.                                 {% endif %}
  271.                                     {% for i in pimcore_iterate_block(pimcore_block('videoBlock', {class: 'faq-video-wrapper row'})) %}
  272.                                         {% if not editmode %}
  273.                                             <div class=\"col-lg-6\">
  274.                                         {% endif %}
  275.                                             {{ pimcore_video('campaignVideo' ~ i) }}
  276.                                         {% if not editmode %}
  277.                                             </div>
  278.                                         {% endif %}
  279.                                     {% endfor %}
  280.                                 {% if editmode %}
  281.                                     </div>
  282.                                 {% endif %}
  283.                             </div>
  284.                         {% if not editmode %}
  285.                             </div>
  286.                         {% endif %}
  287.                     {% endfor %}
  288.                 </div>
  289.             </div>
  290.         </div>
  291.     </div>
  292. </div>
  293. {% endblock %}""document/static_page/faq.html.twig""/var/www/webovi/stoelting/pimcore/templates/document/static_page/faq.html.twig");
  294.     }
  295.     
  296.     public function checkSecurity()
  297.     {
  298.         static $tags = array("include" => 9"for" => 23"if" => 24);
  299.         static $filters = array("escape" => 35);
  300.         static $functions = array("pimcore_input" => 8"pimcore_iterate_block" => 23"pimcore_block" => 23"pimcore_wysiwyg" => 40"pimcore_video" => 54);
  301.         try {
  302.             $this->sandbox->checkSecurity(
  303.                 ['include''for''if'],
  304.                 ['escape'],
  305.                 ['pimcore_input''pimcore_iterate_block''pimcore_block''pimcore_wysiwyg''pimcore_video'],
  306.                 $this->source
  307.             );
  308.         } catch (SecurityError $e) {
  309.             $e->setSourceContext($this->source);
  310.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  311.                 $e->setTemplateLine($tags[$e->getTagName()]);
  312.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  313.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  314.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  315.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  316.             }
  317.             throw $e;
  318.         }
  319.     }
  320. }