var/cache/dev_h00fd8923ecf393ec0b25403e00167bec/twig/1a/1a3b2786b6a243313877b34d176a27b57237fcb65c603af3c754e4837bf7e957.php line 142

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. /* @econdCrossSelll/storefront/block/cms-block-form.html.twig */
  16. class __TwigTemplate_07d447317230e4b814aeffde64792c47 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->blocks = [
  25.             'block_form' => [$this'block_block_form'],
  26.             'block_form_inner' => [$this'block_block_form_inner'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@Storefront/storefront/block/cms-block-form.html.twig";
  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""@econdCrossSelll/storefront/block/cms-block-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""@econdCrossSelll/storefront/block/cms-block-form.html.twig"));
  41.         $this->parent $this->loadTemplate("@Storefront/storefront/block/cms-block-form.html.twig""@econdCrossSelll/storefront/block/cms-block-form.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_block_form($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_form"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_form"));
  56.         // line 4
  57.         echo "    ";
  58.         $context["element"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "slots", [], "any"falsefalsefalse4), "getSlot", [=> "content"], "method"falsefalsefalse4);
  59.         // line 5
  60.         echo "    ";
  61.         $context["columns"] = 1;
  62.         // line 6
  63.         echo "
  64.     ";
  65.         // line 7
  66.         if ((sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse7) == "econda-cross-sell")) {
  67.             // line 8
  68.             echo "        ";
  69.             $context["cs_config"] = $this->env->getFilter('json_encode')->getCallable()(sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "config", [], "any"falsefalsefalse8));
  70.             // line 9
  71.             echo "        <div class=\"col-12\" id=\"ec-";
  72.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "id", [], "any"falsefalsefalse9), "html"nulltrue);
  73.             echo "\" data-element-id=\"";
  74.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "id", [], "any"falsefalsefalse9), "html"nulltrue);
  75.             echo "\" data-element-type=\"";
  76.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse9), "html"nulltrue);
  77.             echo "\" data-widget-id=\"";
  78.             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"falsefalsefalse9), "widgetId", [], "any"falsefalsefalse9), "value", [], "any"falsefalsefalse9), "html"nulltrue);
  79.             echo "\" data-cross-sell-instance=\"";
  80.             echo sw_escape_filter($this->env, (($__internal_compile_0 = ($context["ECS"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["econdCrossSelll.config.clientId"] ?? null) : null), "html"nulltrue);
  81.             echo "\" data-csConfig=\"";
  82.             echo sw_escape_filter($this->env, ($context["cs_config"] ?? null), "html"nulltrue);
  83.             echo "\" data-category=\"";
  84.             echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["categories"] ?? null)), "html"nulltrue);
  85.             echo "\" data-econda-cross-sell>
  86.     ";
  87.         } else {
  88.             // line 11
  89.             echo "        <div class=\"col-12\" data-cms-element-id=\"";
  90.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "id", [], "any"falsefalsefalse11), "html"nulltrue);
  91.             echo "\">
  92.     ";
  93.         }
  94.         // line 13
  95.         echo "
  96.         ";
  97.         // line 14
  98.         $this->displayBlock('block_form_inner'$context$blocks);
  99.         // line 17
  100.         echo "    </div>
  101. ";
  102.         
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104.         
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106.     }
  107.     // line 14
  108.     public function block_block_form_inner($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_form_inner"));
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""block_form_inner"));
  115.         // line 15
  116.         echo "            ";
  117.         ((function () use ($context$blocks) {
  118.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  119.             $includeTemplate $finder->find((("@Storefront/storefront/element/cms-element-" sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse15)) . ".html.twig"));
  120.             return $this->loadTemplate($includeTemplate ?? null"@econdCrossSelll/storefront/block/cms-block-form.html.twig"15);
  121.         })())->display($context);
  122.         // line 16
  123.         echo "        ";
  124.         
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  126.         
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128.     }
  129.     public function getTemplateName()
  130.     {
  131.         return "@econdCrossSelll/storefront/block/cms-block-form.html.twig";
  132.     }
  133.     public function isTraitable()
  134.     {
  135.         return false;
  136.     }
  137.     public function getDebugInfo()
  138.     {
  139.         return array (  142 => 16,  133 => 15,  123 => 14,  112 => 17,  110 => 14,  107 => 13,  101 => 11,  83 => 9,  80 => 8,  78 => 7,  75 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 2,);
  140.     }
  141.     public function getSourceContext()
  142.     {
  143.         return new Source("{% sw_extends \"@Storefront/storefront/block/cms-block-form.html.twig\" %}
  144. {% block block_form %}
  145.     {% set element = block.slots.getSlot('content') %}
  146.     {% set columns = 1 %}
  147.     {% if(element.type == 'econda-cross-sell') %}
  148.         {% set cs_config = element.config|json_encode() %}
  149.         <div class=\"col-12\" id=\"ec-{{ element.id }}\" data-element-id=\"{{ element.id }}\" data-element-type=\"{{ element.type }}\" data-widget-id=\"{{ element.config.widgetId.value }}\" data-cross-sell-instance=\"{{ ECS['econdCrossSelll.config.clientId'] }}\" data-csConfig=\"{{ cs_config }}\" data-category=\"{{ categories|json_encode }}\" data-econda-cross-sell>
  150.     {% else %}
  151.         <div class=\"col-12\" data-cms-element-id=\"{{ element.id }}\">
  152.     {% endif %}
  153.         {% block block_form_inner %}
  154.             {% sw_include \"@Storefront/storefront/element/cms-element-\" ~ element.type ~ \".html.twig\"  %}
  155.         {% endblock %}
  156.     </div>
  157. {% endblock %}
  158. ""@econdCrossSelll/storefront/block/cms-block-form.html.twig""/var/www/shopware6/custom/plugins/econdCrossSelll/src/Resources/views/storefront/block/cms-block-form.html.twig");
  159.     }
  160. }