var/cache/dev_h61dab171fcb3dd073fc68bfbeb4d9256/twig/d3/d389f31416853e74e938e868c4fb3f8023d0290cd535aae3b5a4c2b13b56d3a7.php line 60

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. /* @FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig */
  16. class __TwigTemplate_eda58ef240762f566e2cdcfaea82ffcd 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.             'section_content_block' => [$this'block_section_content_block'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/section/cms-section-block-container.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig""@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_section_content_block($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""section_content_block"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block"));
  55.         // line 4
  56.         echo "
  57.     ";
  58.         // line 5
  59.         $context["flinkResponsive"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "customFields", [], "any"falsefalsefalse5), "flink_responsive", [], "any"falsefalsefalse5);
  60.         // line 6
  61.         echo "    ";
  62.         $macros["__internal_parse_6"] = $this->loadTemplate("@FlinkCmsResponsiveHelper/custom/flink-responsive-classes.html.twig""@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig"6)->unwrap();
  63.         // line 7
  64.         echo "
  65.     ";
  66.         // line 8
  67.         ob_start();
  68.         // line 9
  69.         echo "        ";
  70.         $this->displayParentBlock("section_content_block"$context$blocks);
  71.         echo "
  72.     ";
  73.         $context["content"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  74.         // line 11
  75.         echo "
  76.     <div class=\"flink-responsive-block-container ";
  77.         // line 12
  78.         echo sw_escape_filter($this->envtwig_trim_filter(twig_call_macro($macros["__internal_parse_6"], "macro_flinkViewportClasses", [($context["flinkResponsive"] ?? null)], 12$context$this->getSourceContext())), "html"nulltrue);
  79.         echo "\">
  80.         ";
  81.         // line 13
  82.         $context["loadViaJS"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"FlinkCmsResponsiveHelper.config.loadViaJs");
  83.         // line 14
  84.         echo "        ";
  85.         $context["ignoreCategories"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"FlinkCmsResponsiveHelper.config.ignoreLoadViaJSCategories");
  86.         // line 15
  87.         echo "
  88.         ";
  89.         // line 16
  90.         if (((((($context["loadViaJS"] ?? null) && !twig_in_filter(sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "navigationId", [], "any"falsefalsefalse16), ($context["ignoreCategories"] ?? null))) && twig_in_filter("<img", ($context["content"] ?? null))) && ($context["flinkResponsive"] ?? null)) &&  !($context["flinkResponsivePostFetch"] ?? null))) {
  91.             // line 17
  92.             echo "            <div class=\"flink-responsive-postfetch\"><!-- hidden due to responsive page loading --></div>
  93.         ";
  94.         } else {
  95.             // line 19
  96.             echo "            ";
  97.             echo sw_escape_filter($this->env, ($context["content"] ?? null), "html"nulltrue);
  98.             echo "
  99.         ";
  100.         }
  101.         // line 21
  102.         echo "    </div>
  103. ";
  104.         
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106.         
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  108.     }
  109.     public function getTemplateName()
  110.     {
  111.         return "@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig";
  112.     }
  113.     public function isTraitable()
  114.     {
  115.         return false;
  116.     }
  117.     public function getDebugInfo()
  118.     {
  119.         return array (  114 => 21,  108 => 19,  104 => 17,  102 => 16,  99 => 15,  96 => 14,  94 => 13,  90 => 12,  87 => 11,  81 => 9,  79 => 8,  76 => 7,  73 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 2,);
  120.     }
  121.     public function getSourceContext()
  122.     {
  123.         return new Source("{% sw_extends '@Storefront/storefront/section/cms-section-block-container.html.twig' %}
  124. {% block section_content_block %}
  125.     {% set flinkResponsive = block.customFields.flink_responsive %}
  126.     {% from '@FlinkCmsResponsiveHelper/custom/flink-responsive-classes.html.twig' import flinkViewportClasses as viewportClasses %}
  127.     {% set content %}
  128.         {{ parent() }}
  129.     {% endset %}
  130.     <div class=\"flink-responsive-block-container {{ viewportClasses(flinkResponsive)|trim }}\">
  131.         {% set loadViaJS = config('FlinkCmsResponsiveHelper.config.loadViaJs') %}
  132.         {% set ignoreCategories = config('FlinkCmsResponsiveHelper.config.ignoreLoadViaJSCategories') %}
  133.         {% if loadViaJS and page.navigationId not in ignoreCategories and '<img' in content and flinkResponsive and not flinkResponsivePostFetch %}
  134.             <div class=\"flink-responsive-postfetch\"><!-- hidden due to responsive page loading --></div>
  135.         {% else %}
  136.             {{ content }}
  137.         {% endif %}
  138.     </div>
  139. {% endblock %}""@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig""/usr/www/users/betten/betten-abc-alt-und-tot.de/custom/plugins/FlinkCmsResponsiveHelper/src/Resources/views/storefront/section/cms-section-block-container.html.twig");
  140.     }
  141. }