<?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;
/* @FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig */
class __TwigTemplate_eda58ef240762f566e2cdcfaea82ffcd extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'section_content_block' => [$this, 'block_section_content_block'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/section/cms-section-block-container.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", "@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig", "@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.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_section_content_block($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", "section_content_block"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "section_content_block"));
// line 4
echo "
";
// line 5
$context["flinkResponsive"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "customFields", [], "any", false, false, false, 5), "flink_responsive", [], "any", false, false, false, 5);
// line 6
echo " ";
$macros["__internal_parse_6"] = $this->loadTemplate("@FlinkCmsResponsiveHelper/custom/flink-responsive-classes.html.twig", "@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig", 6)->unwrap();
// line 7
echo "
";
// line 8
ob_start();
// line 9
echo " ";
$this->displayParentBlock("section_content_block", $context, $blocks);
echo "
";
$context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 11
echo "
<div class=\"flink-responsive-block-container ";
// line 12
echo sw_escape_filter($this->env, twig_trim_filter(twig_call_macro($macros["__internal_parse_6"], "macro_flinkViewportClasses", [($context["flinkResponsive"] ?? null)], 12, $context, $this->getSourceContext())), "html", null, true);
echo "\">
";
// line 13
$context["loadViaJS"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "FlinkCmsResponsiveHelper.config.loadViaJs");
// line 14
echo " ";
$context["ignoreCategories"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "FlinkCmsResponsiveHelper.config.ignoreLoadViaJSCategories");
// line 15
echo "
";
// line 16
if (((((($context["loadViaJS"] ?? null) && !twig_in_filter(sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "navigationId", [], "any", false, false, false, 16), ($context["ignoreCategories"] ?? null))) && twig_in_filter("<img", ($context["content"] ?? null))) && ($context["flinkResponsive"] ?? null)) && !($context["flinkResponsivePostFetch"] ?? null))) {
// line 17
echo " <div class=\"flink-responsive-postfetch\"><!-- hidden due to responsive page loading --></div>
";
} else {
// line 19
echo " ";
echo sw_escape_filter($this->env, ($context["content"] ?? null), "html", null, true);
echo "
";
}
// line 21
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@FlinkCmsResponsiveHelper/storefront/section/cms-section-block-container.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/section/cms-section-block-container.html.twig' %}
{% block section_content_block %}
{% set flinkResponsive = block.customFields.flink_responsive %}
{% from '@FlinkCmsResponsiveHelper/custom/flink-responsive-classes.html.twig' import flinkViewportClasses as viewportClasses %}
{% set content %}
{{ parent() }}
{% endset %}
<div class=\"flink-responsive-block-container {{ viewportClasses(flinkResponsive)|trim }}\">
{% set loadViaJS = config('FlinkCmsResponsiveHelper.config.loadViaJs') %}
{% set ignoreCategories = config('FlinkCmsResponsiveHelper.config.ignoreLoadViaJSCategories') %}
{% if loadViaJS and page.navigationId not in ignoreCategories and '<img' in content and flinkResponsive and not flinkResponsivePostFetch %}
<div class=\"flink-responsive-postfetch\"><!-- hidden due to responsive page loading --></div>
{% else %}
{{ content }}
{% endif %}
</div>
{% 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");
}
}