var/cache/dev_h7302b6dbeb5b1ab0a68ccd87e6c236f4/twig/74/74f53c8947c7d2b5acc1ade7f85a8130dc7f87ab4751200ed1ed3bbaf647e51b.php line 52

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. /* @MaxiaListingVariants6/storefront/base.html.twig */
  16. class __TwigTemplate_b3de647e30e19947cd066fe7dbd41d34 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.             'base_script_hmr_mode' => [$this'block_base_script_hmr_mode'],
  26.             'base_script_maxia_listing_variants' => [$this'block_base_script_maxia_listing_variants'],
  27.             'base_script_maxia_listing_variants_scripts_inline' => [$this'block_base_script_maxia_listing_variants_scripts_inline'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "@SwagCmsExtensions/storefront/base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MaxiaListingVariants6/storefront/base.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MaxiaListingVariants6/storefront/base.html.twig"));
  42.         $this->parent $this->loadTemplate("@SwagCmsExtensions/storefront/base.html.twig""@MaxiaListingVariants6/storefront/base.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_base_script_hmr_mode($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_hmr_mode"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_hmr_mode"));
  57.         // line 4
  58.         echo "    ";
  59.         $this->displayBlock('base_script_maxia_listing_variants'$context$blocks);
  60.         // line 20
  61.         echo "
  62.     ";
  63.         // line 21
  64.         $this->displayParentBlock("base_script_hmr_mode"$context$blocks);
  65.         echo "
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.     }
  72.     // line 4
  73.     public function block_base_script_maxia_listing_variants($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_maxia_listing_variants"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_maxia_listing_variants"));
  80.         // line 5
  81.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "extensions", [], "any"falsetruefalse5), "maxiaListingVariants", [], "any"truetruefalse5)) {
  82.             // line 6
  83.             echo "            ";
  84.             if ( !array_key_exists("popupCloseIcon"$context)) {
  85.                 // line 7
  86.                 echo "                ";
  87.                 ob_start();
  88.                 ((function () use ($context$blocks) {
  89.                     $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  90.                     $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  91.                     return $this->loadTemplate($includeTemplate ?? null"@MaxiaListingVariants6/storefront/base.html.twig"7);
  92.                 })())->display(twig_array_merge($context, ["size" => "sm""name" => "x"]));
  93.                 $context["popupCloseIcon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  94.                 // line 8
  95.                 echo "            ";
  96.             }
  97.             // line 9
  98.             echo "            <script>";
  99.             // line 10
  100.             $this->displayBlock('base_script_maxia_listing_variants_scripts_inline'$context$blocks);
  101.             // line 17
  102.             echo "</script>
  103.         ";
  104.         }
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.     }
  110.     // line 10
  111.     public function block_base_script_maxia_listing_variants_scripts_inline($context, array $blocks = [])
  112.     {
  113.         $macros $this->macros;
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_maxia_listing_variants_scripts_inline"));
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_maxia_listing_variants_scripts_inline"));
  118.         // line 11
  119.         echo "window.maxiaListingVariants = ";
  120.         echo $this->env->getFilter('json_encode')->getCallable()(["cmsPageId" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 12
  121. ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse12), "id", [], "any"falsefalsefalse12), "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
  122. ($context["popupCloseIcon"] ?? null)), ["  " => " "])]);
  123.         // line 15
  124.         echo ";";
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.     }
  130.     public function getTemplateName()
  131.     {
  132.         return "@MaxiaListingVariants6/storefront/base.html.twig";
  133.     }
  134.     public function isTraitable()
  135.     {
  136.         return false;
  137.     }
  138.     public function getDebugInfo()
  139.     {
  140.         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,);
  141.     }
  142.     public function getSourceContext()
  143.     {
  144.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  145. {% block base_script_hmr_mode %}
  146.     {% block base_script_maxia_listing_variants %}
  147.         {%- if context.extensions.maxiaListingVariants is defined %}
  148.             {% if popupCloseIcon is not defined %}
  149.                 {% set popupCloseIcon %}{% sw_icon 'x' style { 'size': 'sm' } %}{% endset %}
  150.             {% endif %}
  151.             <script>
  152.                 {%- block base_script_maxia_listing_variants_scripts_inline -%}
  153.                     window.maxiaListingVariants = {{ {
  154.                         'cmsPageId': page.cmsPage.id,
  155.                         'ajaxUrl': path('frontend.plugins.maxia-listing-variants.product-box'),
  156.                         'popupCloseIcon': popupCloseIcon|trim|replace({'  ': ' '})
  157.                     }|json_encode|raw }};
  158.                 {%- endblock -%}
  159.             </script>
  160.         {% endif -%}
  161.     {% endblock %}
  162.     {{ parent() }}
  163. {% endblock %}
  164. ""@MaxiaListingVariants6/storefront/base.html.twig""/var/www/geuther_staging/custom/plugins/MaxiaListingVariants6/src/Resources/views/storefront/base.html.twig");
  165.     }
  166. }