var/cache/dev_h00fd8923ecf393ec0b25403e00167bec/twig/0e/0e99a1ffa8ced31737645518a224b347227fac3e7470176f26e58451928db34b.php line 201

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @Storefront/storefront/element/cms-element-form.html.twig */
  16. class __TwigTemplate_dcc238bd16ffcfaa1d5c3654e7e1123d extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->parent false;
  25.         $this->blocks = [
  26.             'element_form' => [$this'block_element_form'],
  27.             'element_form_wrapper' => [$this'block_element_form_wrapper'],
  28.             'element_form_contact_form_title' => [$this'block_element_form_contact_form_title'],
  29.             'element_form_contact_form_form' => [$this'block_element_form_contact_form_form'],
  30.             'element_form_newsletter_form_title' => [$this'block_element_form_newsletter_form_title'],
  31.             'element_form_newsletter_form_form' => [$this'block_element_form_newsletter_form_form'],
  32.         ];
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-form.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-form.html.twig"));
  41.         // line 1
  42.         $this->displayBlock('element_form'$context$blocks);
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     public function block_element_form($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form"));
  55.         // line 2
  56.         echo "    ";
  57.         $context["config"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "fieldConfig", [], "any"falsefalsefalse2), "elements", [], "any"falsefalsefalse2);
  58.         // line 3
  59.         echo "
  60.     <div class=\"cms-element-";
  61.         // line 4
  62.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse4), "html"nulltrue);
  63.         echo "\">
  64.         <div class=\"row justify-content-center\">
  65.             <div class=\"col-lg-12\">
  66.                 ";
  67.         // line 8
  68.         $context["formViolations"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse8), "get", [=> "errors"], "method"falsefalsefalse8);
  69.         // line 9
  70.         echo "
  71.                 <div class=\"card\">
  72.                     <div class=\"card-body\">
  73.                         ";
  74.         // line 12
  75.         $this->displayBlock('element_form_wrapper'$context$blocks);
  76.         // line 53
  77.         echo "                    </div>
  78.                 </div>
  79.             </div>
  80.         </div>
  81.     </div>
  82. ";
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.     }
  88.     // line 12
  89.     public function block_element_form_wrapper($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_wrapper"));
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_wrapper"));
  96.         // line 13
  97.         echo "                            ";
  98.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "config", [], "any"falsefalsefalse13), "type", [], "any"falsefalsefalse13), "value", [], "any"falsefalsefalse13) === "contact")) {
  99.             // line 14
  100.             echo "                                ";
  101.             $this->displayBlock('element_form_contact_form_title'$context$blocks);
  102.             // line 23
  103.             echo "
  104.                                 ";
  105.             // line 24
  106.             $this->displayBlock('element_form_contact_form_form'$context$blocks);
  107.             // line 32
  108.             echo "                            ";
  109.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "config", [], "any"falsefalsefalse32), "type", [], "any"falsefalsefalse32), "value", [], "any"falsefalsefalse32) === "newsletter")) {
  110.             // line 33
  111.             echo "                                ";
  112.             $this->displayBlock('element_form_newsletter_form_title'$context$blocks);
  113.             // line 42
  114.             echo "
  115.                                 ";
  116.             // line 43
  117.             $this->displayBlock('element_form_newsletter_form_form'$context$blocks);
  118.             // line 51
  119.             echo "                            ";
  120.         }
  121.         // line 52
  122.         echo "                        ";
  123.         
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  125.         
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  127.     }
  128.     // line 14
  129.     public function block_element_form_contact_form_title($context, array $blocks = [])
  130.     {
  131.         $macros $this->macros;
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_contact_form_title"));
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_contact_form_title"));
  136.         // line 15
  137.         echo "                                    <div class=\"card-title mb-4\">
  138.                                         ";
  139.         // line 16
  140.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "config", [], "any"falsefalsefalse16), "title", [], "any"falsefalsefalse16), "value", [], "any"falsefalsefalse16)) {
  141.             // line 17
  142.             echo "                                            ";
  143.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "config", [], "any"falsefalsefalse17), "title", [], "any"falsefalsefalse17), "value", [], "any"falsefalsefalse17), "html"nulltrue);
  144.             echo "
  145.                                         ";
  146.         } else {
  147.             // line 19
  148.             echo "                                            ";
  149.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.headline"), "html"nulltrue);
  150.             echo "
  151.                                         ";
  152.         }
  153.         // line 21
  154.         echo "                                    </div>
  155.                                 ";
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.     }
  161.     // line 24
  162.     public function block_element_form_contact_form_form($context, array $blocks = [])
  163.     {
  164.         $macros $this->macros;
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_contact_form_form"));
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_contact_form_form"));
  169.         // line 25
  170.         echo "                                    ";
  171.         $this->loadTemplate("@Storefront/storefront/element/cms-element-form/form-types/contact-form.html.twig""@Storefront/storefront/element/cms-element-form.html.twig"25)->display(twig_array_merge($context, ["action" => "frontend.form.contact.send""submitText" => "contact.formSubmit"]));
  172.         // line 31
  173.         echo "                                ";
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.     }
  179.     // line 33
  180.     public function block_element_form_newsletter_form_title($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_newsletter_form_title"));
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_newsletter_form_title"));
  187.         // line 34
  188.         echo "                                    <div class=\"card-title mb-4\">
  189.                                         ";
  190.         // line 35
  191.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "config", [], "any"falsefalsefalse35), "title", [], "any"falsefalsefalse35), "value", [], "any"falsefalsefalse35)) {
  192.             // line 36
  193.             echo "                                            ";
  194.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "config", [], "any"falsefalsefalse36), "title", [], "any"falsefalsefalse36), "value", [], "any"falsefalsefalse36), "html"nulltrue);
  195.             echo "
  196.                                         ";
  197.         } else {
  198.             // line 38
  199.             echo "                                            ";
  200.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("newsletter.headline"), "html"nulltrue);
  201.             echo "
  202.                                         ";
  203.         }
  204.         // line 40
  205.         echo "                                    </div>
  206.                                 ";
  207.         
  208.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  209.         
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  211.     }
  212.     // line 43
  213.     public function block_element_form_newsletter_form_form($context, array $blocks = [])
  214.     {
  215.         $macros $this->macros;
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  217.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_newsletter_form_form"));
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  219.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_form_newsletter_form_form"));
  220.         // line 44
  221.         echo "                                    ";
  222.         $this->loadTemplate("@Storefront/storefront/element/cms-element-form/form-types/newsletter-form.html.twig""@Storefront/storefront/element/cms-element-form.html.twig"44)->display(twig_array_merge($context, ["action" => "frontend.form.newsletter.register.handle""submitText" => "newsletter.formSubmit"]));
  223.         // line 50
  224.         echo "                                ";
  225.         
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  227.         
  228.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  229.     }
  230.     public function getTemplateName()
  231.     {
  232.         return "@Storefront/storefront/element/cms-element-form.html.twig";
  233.     }
  234.     public function getDebugInfo()
  235.     {
  236.         return array (  262 => 50,  259 => 44,  249 => 43,  238 => 40,  232 => 38,  226 => 36,  224 => 35,  221 => 34,  211 => 33,  201 => 31,  198 => 25,  188 => 24,  177 => 21,  171 => 19,  165 => 17,  163 => 16,  160 => 15,  150 => 14,  140 => 52,  137 => 51,  135 => 43,  132 => 42,  129 => 33,  126 => 32,  124 => 24,  121 => 23,  118 => 14,  115 => 13,  105 => 12,  90 => 53,  88 => 12,  83 => 9,  81 => 8,  74 => 4,  71 => 3,  68 => 2,  49 => 1,);
  237.     }
  238.     public function getSourceContext()
  239.     {
  240.         return new Source("{% block element_form %}
  241.     {%  set config = element.fieldConfig.elements %}
  242.     <div class=\"cms-element-{{ element.type }}\">
  243.         <div class=\"row justify-content-center\">
  244.             <div class=\"col-lg-12\">
  245.                 {% set formViolations = app.request.get('errors') %}
  246.                 <div class=\"card\">
  247.                     <div class=\"card-body\">
  248.                         {% block element_form_wrapper %}
  249.                             {% if element.config.type.value is same as('contact') %}
  250.                                 {% block element_form_contact_form_title %}
  251.                                     <div class=\"card-title mb-4\">
  252.                                         {% if element.config.title.value %}
  253.                                             {{ element.config.title.value }}
  254.                                         {%  else %}
  255.                                             {{ \"contact.headline\"|trans }}
  256.                                         {% endif %}
  257.                                     </div>
  258.                                 {% endblock %}
  259.                                 {% block element_form_contact_form_form %}
  260.                                     {% sw_include '@Storefront/storefront/element/cms-element-form/form-types/contact-form.html.twig'
  261.                                         with {
  262.                                             action: 'frontend.form.contact.send',
  263.                                             submitText: 'contact.formSubmit'
  264.                                         }
  265.                                     %}
  266.                                 {% endblock %}
  267.                             {% elseif element.config.type.value is same as('newsletter') %}
  268.                                 {% block element_form_newsletter_form_title %}
  269.                                     <div class=\"card-title mb-4\">
  270.                                         {% if element.config.title.value %}
  271.                                             {{ element.config.title.value }}
  272.                                         {%  else %}
  273.                                             {{ \"newsletter.headline\"|trans }}
  274.                                         {% endif %}
  275.                                     </div>
  276.                                 {% endblock %}
  277.                                 {% block element_form_newsletter_form_form %}
  278.                                     {% sw_include '@Storefront/storefront/element/cms-element-form/form-types/newsletter-form.html.twig'
  279.                                         with {
  280.                                             action: 'frontend.form.newsletter.register.handle',
  281.                                             submitText: 'newsletter.formSubmit'
  282.                                         }
  283.                                     %}
  284.                                 {% endblock %}
  285.                             {% endif %}
  286.                         {% endblock %}
  287.                     </div>
  288.                 </div>
  289.             </div>
  290.         </div>
  291.     </div>
  292. {% endblock %}
  293. ""@Storefront/storefront/element/cms-element-form.html.twig""/var/www/shopware6/vendor/shopware/storefront/Resources/views/storefront/element/cms-element-form.html.twig");
  294.     }
  295. }