<?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;
/* @MaxiaListingVariants6/storefront/base.html.twig */
class __TwigTemplate_b3de647e30e19947cd066fe7dbd41d34 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_script_hmr_mode' => [$this, 'block_base_script_hmr_mode'],
'base_script_maxia_listing_variants' => [$this, 'block_base_script_maxia_listing_variants'],
'base_script_maxia_listing_variants_scripts_inline' => [$this, 'block_base_script_maxia_listing_variants_scripts_inline'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@SwagCmsExtensions/storefront/base.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", "@MaxiaListingVariants6/storefront/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MaxiaListingVariants6/storefront/base.html.twig"));
$this->parent = $this->loadTemplate("@SwagCmsExtensions/storefront/base.html.twig", "@MaxiaListingVariants6/storefront/base.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_base_script_hmr_mode($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", "base_script_hmr_mode"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_script_hmr_mode"));
// line 4
echo " ";
$this->displayBlock('base_script_maxia_listing_variants', $context, $blocks);
// line 20
echo "
";
// line 21
$this->displayParentBlock("base_script_hmr_mode", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_base_script_maxia_listing_variants($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", "base_script_maxia_listing_variants"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_script_maxia_listing_variants"));
// line 5
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "extensions", [], "any", false, true, false, 5), "maxiaListingVariants", [], "any", true, true, false, 5)) {
// line 6
echo " ";
if ( !array_key_exists("popupCloseIcon", $context)) {
// line 7
echo " ";
ob_start();
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@MaxiaListingVariants6/storefront/base.html.twig", 7);
})())->display(twig_array_merge($context, ["size" => "sm", "name" => "x"]));
$context["popupCloseIcon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 8
echo " ";
}
// line 9
echo " <script>";
// line 10
$this->displayBlock('base_script_maxia_listing_variants_scripts_inline', $context, $blocks);
// line 17
echo "</script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 10
public function block_base_script_maxia_listing_variants_scripts_inline($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", "base_script_maxia_listing_variants_scripts_inline"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_script_maxia_listing_variants_scripts_inline"));
// line 11
echo "window.maxiaListingVariants = ";
echo $this->env->getFilter('json_encode')->getCallable()(["cmsPageId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 12
($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 12), "id", [], "any", false, false, false, 12), "ajaxUrl" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.plugins.maxia-listing-variants.product-box"), "popupCloseIcon" => twig_replace_filter(twig_trim_filter( // line 14
($context["popupCloseIcon"] ?? null)), [" " => " "])]);
// line 15
echo ";";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@MaxiaListingVariants6/storefront/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 148 => 15, 146 => 14, 145 => 12, 143 => 11, 133 => 10, 121 => 17, 119 => 10, 117 => 9, 114 => 8, 103 => 7, 100 => 6, 98 => 5, 88 => 4, 76 => 21, 73 => 20, 70 => 4, 60 => 3, 37 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_script_hmr_mode %}
{% block base_script_maxia_listing_variants %}
{%- if context.extensions.maxiaListingVariants is defined %}
{% if popupCloseIcon is not defined %}
{% set popupCloseIcon %}{% sw_icon 'x' style { 'size': 'sm' } %}{% endset %}
{% endif %}
<script>
{%- block base_script_maxia_listing_variants_scripts_inline -%}
window.maxiaListingVariants = {{ {
'cmsPageId': page.cmsPage.id,
'ajaxUrl': path('frontend.plugins.maxia-listing-variants.product-box'),
'popupCloseIcon': popupCloseIcon|trim|replace({' ': ' '})
}|json_encode|raw }};
{%- endblock -%}
</script>
{% endif -%}
{% endblock %}
{{ parent() }}
{% endblock %}
", "@MaxiaListingVariants6/storefront/base.html.twig", "/var/www/geuther_staging/custom/plugins/MaxiaListingVariants6/src/Resources/views/storefront/base.html.twig");
}
}