<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @econdCrossSelll/storefront/block/cms-block-form.html.twig */
class __TwigTemplate_07d447317230e4b814aeffde64792c47 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'block_form' => [$this, 'block_block_form'],
'block_form_inner' => [$this, 'block_block_form_inner'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/block/cms-block-form.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@econdCrossSelll/storefront/block/cms-block-form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@econdCrossSelll/storefront/block/cms-block-form.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/block/cms-block-form.html.twig", "@econdCrossSelll/storefront/block/cms-block-form.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_block_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "block_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "block_form"));
// line 4
echo " ";
$context["element"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "slots", [], "any", false, false, false, 4), "getSlot", [0 => "content"], "method", false, false, false, 4);
// line 5
echo " ";
$context["columns"] = 1;
// line 6
echo "
";
// line 7
if ((sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "type", [], "any", false, false, false, 7) == "econda-cross-sell")) {
// line 8
echo " ";
$context["cs_config"] = $this->env->getFilter('json_encode')->getCallable()(sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "config", [], "any", false, false, false, 8));
// line 9
echo " <div class=\"col-12\" id=\"ec-";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "id", [], "any", false, false, false, 9), "html", null, true);
echo "\" data-element-id=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "id", [], "any", false, false, false, 9), "html", null, true);
echo "\" data-element-type=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "type", [], "any", false, false, false, 9), "html", null, true);
echo "\" data-widget-id=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "config", [], "any", false, false, false, 9), "widgetId", [], "any", false, false, false, 9), "value", [], "any", false, false, false, 9), "html", null, true);
echo "\" data-cross-sell-instance=\"";
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", null, true);
echo "\" data-csConfig=\"";
echo sw_escape_filter($this->env, ($context["cs_config"] ?? null), "html", null, true);
echo "\" data-category=\"";
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["categories"] ?? null)), "html", null, true);
echo "\" data-econda-cross-sell>
";
} else {
// line 11
echo " <div class=\"col-12\" data-cms-element-id=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "id", [], "any", false, false, false, 11), "html", null, true);
echo "\">
";
}
// line 13
echo "
";
// line 14
$this->displayBlock('block_form_inner', $context, $blocks);
// line 17
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 14
public function block_block_form_inner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "block_form_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "block_form_inner"));
// line 15
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find((("@Storefront/storefront/element/cms-element-" . sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "type", [], "any", false, false, false, 15)) . ".html.twig"));
return $this->loadTemplate($includeTemplate ?? null, "@econdCrossSelll/storefront/block/cms-block-form.html.twig", 15);
})())->display($context);
// line 16
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@econdCrossSelll/storefront/block/cms-block-form.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends \"@Storefront/storefront/block/cms-block-form.html.twig\" %}
{% block block_form %}
{% set element = block.slots.getSlot('content') %}
{% set columns = 1 %}
{% if(element.type == 'econda-cross-sell') %}
{% set cs_config = element.config|json_encode() %}
<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>
{% else %}
<div class=\"col-12\" data-cms-element-id=\"{{ element.id }}\">
{% endif %}
{% block block_form_inner %}
{% sw_include \"@Storefront/storefront/element/cms-element-\" ~ element.type ~ \".html.twig\" %}
{% endblock %}
</div>
{% endblock %}
", "@econdCrossSelll/storefront/block/cms-block-form.html.twig", "/var/www/shopware6/custom/plugins/econdCrossSelll/src/Resources/views/storefront/block/cms-block-form.html.twig");
}
}