var/cache/dev/twig/a0/a05a0a134776ce1cec12428852d643f0.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/contact_us.html.twig */
  15. class __TwigTemplate_5656f4ede60fa9e66e2e6f279a2ee69f 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/contact_us.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/contact_us.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/contact_us.html.twig"));
  43.         $this->parent $this->loadTemplate("layout/default.html.twig""document/static_page/contact_us.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/contact_us.html.twig"9)->unwrap()->yield($context);
  74.         // line 10
  75.         yield "            </div>
  76.             <div class=\"col-lg-4\">
  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>
  87.                     ";
  88.         // line 23
  89.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""content", ["height" => 200"placeholder" => "Content"]);
  90.         // line 27
  91.         yield "
  92.                 </div>
  93.                 ";
  94.         // line 30
  95.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""myAreaBlock");
  96.         yield "
  97.             </div>
  98.             <div class=\"col-lg-2 col-md-12\">
  99.                 ";
  100.         // line 33
  101.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'33$this->source); })())) {
  102.             // line 34
  103.             yield "                    ";
  104.             $context['_parent'] = $context;
  105.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""contentblock")));
  106.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  107.                 // line 35
  108.                 yield "                        ";
  109.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""stoeltingContactLogo", ["width" => 180"height" => 180]);
  110.                 yield "
  111.                         <h5 class=\"font-weight-bold mt-3 mt-lg-3 mt-md-3\">";
  112.                 // line 36
  113.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""stoeltingContactuUsNameCompany");
  114.                 yield "</h5>
  115.                         <div class=\"wysiwyg-p-m-0\">
  116.                             ";
  117.                 // line 38
  118.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""contactUsAddress", ["height" => 180"placeholder" => "Content"]);
  119.                 // line 42
  120.                 yield "
  121.                         </div>
  122.                     ";
  123.             }
  124.             $_parent $context['_parent'];
  125.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  126.             $context array_intersect_key($context$_parent) + $_parent;
  127.             // line 45
  128.             yield "
  129.                 ";
  130.         } else {
  131.             // line 47
  132.             yield "                <div class=\"row mt-5 mt-md-5 mt-lg-0\">
  133.                     ";
  134.             // line 48
  135.             $context['_parent'] = $context;
  136.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""contentblock")));
  137.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  138.                 // line 49
  139.                 yield "                        <div class=\"col-lg-12 col-md-6 col-sm-6 col-xs-12 text-left mb-4 mb-lg-0\">
  140.                             <div class=\"d-flex flex-column m-auto\" style=\"width: 200px;\">
  141.                                 <img src=\"";
  142.                 // line 51
  143.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""stoeltingContactLogo"), "getThumbnail", ["Stoelting_contact_logo"], "method"falsefalsetrue51), 51$this->source), "html"nulltrue);
  144.                 yield "\" alt=\"";
  145.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""stoeltingContactLogo"), "getAlt", [], "method"falsefalsetrue51), 51$this->source), "html"nulltrue);
  146.                 yield "\" style=\"width: 200px; max-width:100%;\">
  147.                                 <h5 class=\"font-weight-bold mt-3 mt-lg-3 mt-md-3\">";
  148.                 // line 52
  149.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""stoeltingContactuUsNameCompany");
  150.                 yield "</h5>
  151.                                 <div class=\"wysiwyg-p-m-0\">
  152.                                     ";
  153.                 // line 54
  154.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""contactUsAddress", ["height" => 180"placeholder" => "Content"]);
  155.                 // line 58
  156.                 yield "
  157.                                 </div>
  158.                             </div>
  159.                         </div>
  160.                     ";
  161.             }
  162.             $_parent $context['_parent'];
  163.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  164.             $context array_intersect_key($context$_parent) + $_parent;
  165.             // line 63
  166.             yield "                </div>
  167.                 ";
  168.         }
  169.         // line 66
  170.         yield "            </div>
  171.         </div>
  172.     </div>
  173. </div>
  174. ";
  175.         
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  177.         
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179.         
  180.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  181.         return; yield '';
  182.     }
  183.     /**
  184.      * @codeCoverageIgnore
  185.      */
  186.     public function getTemplateName()
  187.     {
  188.         return "document/static_page/contact_us.html.twig";
  189.     }
  190.     /**
  191.      * @codeCoverageIgnore
  192.      */
  193.     public function isTraitable()
  194.     {
  195.         return false;
  196.     }
  197.     /**
  198.      * @codeCoverageIgnore
  199.      */
  200.     public function getDebugInfo()
  201.     {
  202.         return array (  190 => 66,  185 => 63,  175 => 58,  173 => 54,  168 => 52,  162 => 51,  158 => 49,  154 => 48,  151 => 47,  147 => 45,  139 => 42,  137 => 38,  132 => 36,  127 => 35,  122 => 34,  120 => 33,  114 => 30,  109 => 27,  107 => 23,  100 => 18,  98 => 14,  92 => 10,  90 => 9,  86 => 8,  80 => 4,  67 => 3,  38 => 1,);
  203.     }
  204.     public function getSourceContext()
  205.     {
  206.         return new Source("{% extends 'layout/default.html.twig' %}
  207. {% block contentBlock %}
  208. <div class=\"staticPage\">
  209.     <div class=\"container my-5 my-lg-5 my-md-5\">
  210.         <div class=\"row\">
  211.             <div class=\"col-lg-3\">
  212.                 <h4 class=\"font-weight-bold text-uppercase\">{{ pimcore_input('staticPage--heading',{placeholder: 'Heading...'}) }}</h4>
  213.                 {% include 'document/static_page/sidebar/sidebar.html.twig' %}
  214.             </div>
  215.             <div class=\"col-lg-4\">
  216.                 <div class=\"mb-4 mb-lg-4 mb-md-4\">
  217.                     <h1 class=\"font-italic font-weight-bold\">
  218.                         {{ pimcore_input('heading',{
  219.                                 \"height\": 150,
  220.                                 \"placeholder\": \"Heading\"
  221.                             })
  222.                         }}
  223.                     </h1>
  224.                 </div>
  225.                 <div>
  226.                     {{  pimcore_wysiwyg(\"content\", {
  227.                             \"height\": 200,
  228.                             \"placeholder\": \"Content\"
  229.                         })
  230.                     }}
  231.                 </div>
  232.                 {{ pimcore_areablock('myAreaBlock') }}
  233.             </div>
  234.             <div class=\"col-lg-2 col-md-12\">
  235.                 {% if editmode %}
  236.                     {% for i in pimcore_iterate_block(pimcore_block('contentblock')) %}
  237.                         {{ pimcore_image('stoeltingContactLogo',{width: 180,height: 180}) }}
  238.                         <h5 class=\"font-weight-bold mt-3 mt-lg-3 mt-md-3\">{{ pimcore_input('stoeltingContactuUsNameCompany') }}</h5>
  239.                         <div class=\"wysiwyg-p-m-0\">
  240.                             {{  pimcore_wysiwyg(\"contactUsAddress\", {
  241.                                     \"height\": 180,
  242.                                     \"placeholder\": \"Content\"
  243.                                 })
  244.                             }}
  245.                         </div>
  246.                     {% endfor %}
  247.                 {% else %}
  248.                 <div class=\"row mt-5 mt-md-5 mt-lg-0\">
  249.                     {% for i in pimcore_iterate_block(pimcore_block('contentblock')) %}
  250.                         <div class=\"col-lg-12 col-md-6 col-sm-6 col-xs-12 text-left mb-4 mb-lg-0\">
  251.                             <div class=\"d-flex flex-column m-auto\" style=\"width: 200px;\">
  252.                                 <img src=\"{{ pimcore_image('stoeltingContactLogo').getThumbnail('Stoelting_contact_logo') }}\" alt=\"{{ pimcore_image('stoeltingContactLogo').getAlt() }}\" style=\"width: 200px; max-width:100%;\">
  253.                                 <h5 class=\"font-weight-bold mt-3 mt-lg-3 mt-md-3\">{{ pimcore_input('stoeltingContactuUsNameCompany') }}</h5>
  254.                                 <div class=\"wysiwyg-p-m-0\">
  255.                                     {{  pimcore_wysiwyg(\"contactUsAddress\", {
  256.                                             \"height\": 180,
  257.                                             \"placeholder\": \"Content\"
  258.                                         })
  259.                                     }}
  260.                                 </div>
  261.                             </div>
  262.                         </div>
  263.                     {% endfor %}
  264.                 </div>
  265.                 {% endif %}
  266.             </div>
  267.         </div>
  268.     </div>
  269. </div>
  270. {% endblock %}""document/static_page/contact_us.html.twig""/var/www/webovi/stoelting/pimcore/templates/document/static_page/contact_us.html.twig");
  271.     }
  272.     
  273.     public function checkSecurity()
  274.     {
  275.         static $tags = array("include" => 9"if" => 33"for" => 34);
  276.         static $filters = array("escape" => 51);
  277.         static $functions = array("pimcore_input" => 8"pimcore_wysiwyg" => 23"pimcore_areablock" => 30"pimcore_iterate_block" => 34"pimcore_block" => 34"pimcore_image" => 35);
  278.         try {
  279.             $this->sandbox->checkSecurity(
  280.                 ['include''if''for'],
  281.                 ['escape'],
  282.                 ['pimcore_input''pimcore_wysiwyg''pimcore_areablock''pimcore_iterate_block''pimcore_block''pimcore_image'],
  283.                 $this->source
  284.             );
  285.         } catch (SecurityError $e) {
  286.             $e->setSourceContext($this->source);
  287.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  288.                 $e->setTemplateLine($tags[$e->getTagName()]);
  289.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  290.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  291.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  292.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  293.             }
  294.             throw $e;
  295.         }
  296.     }
  297. }