<?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;
/* @econdWebAnalytics/storefront/section/cms-section-block-container.html.twig */
class __TwigTemplate_eb7d9d4afebf8868e94e0881da04a9de 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'],
'section_content_block_background_image' => [$this, 'block_section_content_block_background_image'],
'section_content_block_container' => [$this, 'block_section_content_block_container'],
'section_content_block_row' => [$this, 'block_section_content_block_row'],
];
}
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", "@econdWebAnalytics/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", "@econdWebAnalytics/storefront/section/cms-section-block-container.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig", "@econdWebAnalytics/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 " ";
$context["top"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginTop", [], "any", false, false, false, 4)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginTop", [], "any", false, false, false, 4)) : (0));
// line 5
echo " ";
$context["right"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginRight", [], "any", false, false, false, 5)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginRight", [], "any", false, false, false, 5)) : (0));
// line 6
echo " ";
$context["bottom"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginBottom", [], "any", false, false, false, 6)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginBottom", [], "any", false, false, false, 6)) : (0));
// line 7
echo " ";
$context["left"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginLeft", [], "any", false, false, false, 7)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginLeft", [], "any", false, false, false, 7)) : (0));
// line 8
echo " ";
if ((((($context["top"] ?? null) || ($context["right"] ?? null)) || ($context["bottom"] ?? null)) || ($context["left"] ?? null))) {
// line 9
echo " ";
$context["padding"] = ((((((($context["top"] ?? null) . " ") . ($context["right"] ?? null)) . " ") . ($context["bottom"] ?? null)) . " ") . ($context["left"] ?? null));
// line 10
echo " ";
}
// line 11
echo " ";
$context["blockBgColor"] = sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "backgroundColor", [], "any", false, false, false, 11);
// line 12
echo " ";
$context["blockClasses"] = [0 => sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "cssClass", [], "any", false, false, false, 12), 1 => ("pos-" . sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "position", [], "any", false, false, false, 12)), 2 => ("cms-block-" . sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "type", [], "any", false, false, false, 12))];
// line 13
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "backgroundMedia", [], "any", false, false, false, 13)) {
// line 14
echo " ";
$context["blockClasses"] = twig_array_merge([0 => "bg-image"], ($context["blockClasses"] ?? null));
// line 15
echo " ";
}
// line 16
echo " ";
if (($context["blockBgColor"] ?? null)) {
// line 17
echo " ";
$context["blockClasses"] = twig_array_merge([0 => "bg-color"], ($context["blockClasses"] ?? null));
// line 18
echo " ";
}
// line 19
echo " ";
$context["columns"] = 3;
// line 20
echo " ";
$context["isInSidebar"] = (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "sectionPosition", [], "any", false, false, false, 20) == "sidebar");
// line 21
echo " ";
$context["sidebarClasses"] = "";
// line 22
echo " ";
if ((($context["isInSidebar"] ?? null) == true)) {
// line 23
echo " ";
$context["sidebarClasses"] = "has--sidebar";
// line 24
echo " ";
}
// line 25
echo " ";
if ((null === sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "visibility", [], "any", false, false, false, 25))) {
// line 26
echo " ";
$context["visibility"] = ["mobile" => true, "tablet" => true, "desktop" => true];
// line 31
echo " ";
} else {
// line 32
echo " ";
$context["visibility"] = sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "visibility", [], "any", false, false, false, 32);
// line 33
echo " ";
}
// line 34
echo " ";
if ( !sw_get_attribute($this->env, $this->source, ($context["visibility"] ?? null), "mobile", [], "any", false, false, false, 34)) {
// line 35
echo " ";
$context["blockClasses"] = twig_array_merge([0 => "hidden-mobile"], ($context["blockClasses"] ?? null));
// line 36
echo " ";
}
// line 37
echo " ";
if ( !sw_get_attribute($this->env, $this->source, ($context["visibility"] ?? null), "tablet", [], "any", false, false, false, 37)) {
// line 38
echo " ";
$context["blockClasses"] = twig_array_merge([0 => "hidden-tablet"], ($context["blockClasses"] ?? null));
// line 39
echo " ";
}
// line 40
echo " ";
if ( !sw_get_attribute($this->env, $this->source, ($context["visibility"] ?? null), "desktop", [], "any", false, false, false, 40)) {
// line 41
echo " ";
$context["blockClasses"] = twig_array_merge([0 => "hidden-desktop"], ($context["blockClasses"] ?? null));
// line 42
echo " ";
}
// line 43
echo " <div class=\"cms-block ";
echo sw_escape_filter($this->env, twig_join_filter(($context["blockClasses"] ?? null), " "), "html", null, true);
echo "\"
style=\"";
// line 44
if (($context["blockBgColor"] ?? null)) {
echo " background-color: ";
echo sw_escape_filter($this->env, ($context["blockBgColor"] ?? null), "html", null, true);
echo ";";
}
echo "\">
";
// line 45
$this->displayBlock('section_content_block_background_image', $context, $blocks);
// line 55
echo " ";
$this->displayBlock('section_content_block_container', $context, $blocks);
// line 65
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 45
public function block_section_content_block_background_image($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_background_image"));
$__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_background_image"));
// line 46
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "backgroundMedia", [], "any", false, false, false, 46)) {
// line 47
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@econdWebAnalytics/storefront/section/cms-section-block-container.html.twig", 47);
})())->display(twig_array_merge($context, ["media" => sw_get_attribute($this->env, $this->source, // line 48
($context["block"] ?? null), "backgroundMedia", [], "any", false, false, false, 48), "attributes" => ["class" => ("cms-block-background media-mode--" . sw_get_attribute($this->env, $this->source, // line 50
($context["block"] ?? null), "backgroundMediaMode", [], "any", false, false, false, 50))], "name" => "cms-block-background"]));
// line 53
echo " ";
}
// line 54
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 55
public function block_section_content_block_container($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_container"));
$__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_container"));
// line 56
echo " <div class=\"cms-block-container\"
style=\"";
// line 57
if (($context["padding"] ?? null)) {
echo "padding: ";
echo sw_escape_filter($this->env, ($context["padding"] ?? null), "html", null, true);
echo ";";
}
echo "\">
";
// line 58
$this->displayBlock('section_content_block_row', $context, $blocks);
// line 63
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 58
public function block_section_content_block_row($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_row"));
$__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_row"));
// line 59
echo " <div class=\"cms-block-container-row row cms-row ";
echo sw_escape_filter($this->env, ($context["sidebarClasses"] ?? null), "html", null, true);
echo "\">
";
// line 60
$__internal_compile_0 = null;
try {
$__internal_compile_0 = ((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find((("@Storefront/storefront/block/cms-block-" . sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "type", [], "any", false, false, false, 60)) . ".html.twig"));
return $this->loadTemplate($includeTemplate ?? null, "@econdWebAnalytics/storefront/section/cms-section-block-container.html.twig", 60);
})());
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display($context);
}
// line 61
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@econdWebAnalytics/storefront/section/cms-section-block-container.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 307 => 61, 291 => 60, 286 => 59, 276 => 58, 265 => 63, 263 => 58, 255 => 57, 252 => 56, 242 => 55, 232 => 54, 229 => 53, 227 => 50, 226 => 48, 218 => 47, 215 => 46, 205 => 45, 194 => 65, 191 => 55, 189 => 45, 181 => 44, 176 => 43, 173 => 42, 170 => 41, 167 => 40, 164 => 39, 161 => 38, 158 => 37, 155 => 36, 152 => 35, 149 => 34, 146 => 33, 143 => 32, 140 => 31, 137 => 26, 134 => 25, 131 => 24, 128 => 23, 125 => 22, 122 => 21, 119 => 20, 116 => 19, 113 => 18, 110 => 17, 107 => 16, 104 => 15, 101 => 14, 98 => 13, 95 => 12, 92 => 11, 89 => 10, 86 => 9, 83 => 8, 80 => 7, 77 => 6, 74 => 5, 71 => 4, 61 => 3, 38 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/section/cms-section-block-container.html.twig' %}
{% block section_content_block %}
{% set top = block.marginTop ? block.marginTop : 0 %}
{% set right = block.marginRight ? block.marginRight : 0 %}
{% set bottom = block.marginBottom ? block.marginBottom : 0 %}
{% set left = block.marginLeft ? block.marginLeft : 0 %}
{% if top or right or bottom or left %}
{% set padding = top ~ \" \" ~ right ~ \" \" ~ bottom ~ \" \" ~ left %}
{% endif %}
{% set blockBgColor = block.backgroundColor %}
{% set blockClasses = [block.cssClass, 'pos-' ~ block.position, 'cms-block-' ~ block.type] %}
{% if block.backgroundMedia %}
{% set blockClasses = ['bg-image']|merge(blockClasses) %}
{% endif %}
{% if blockBgColor %}
{% set blockClasses = ['bg-color']|merge(blockClasses) %}
{% endif %}
{% set columns = 3 %}
{% set isInSidebar = block.sectionPosition == 'sidebar' %}
{% set sidebarClasses = '' %}
{% if isInSidebar == true %}
{% set sidebarClasses = 'has--sidebar' %}
{% endif %}
{% if block.visibility is null %}
{% set visibility = {
mobile: true,
tablet: true,
desktop: true
} %}
{% else %}
{% set visibility = block.visibility %}
{% endif %}
{% if not visibility.mobile %}
{% set blockClasses = ['hidden-mobile']|merge(blockClasses) %}
{% endif %}
{% if not visibility.tablet %}
{% set blockClasses = ['hidden-tablet']|merge(blockClasses) %}
{% endif %}
{% if not visibility.desktop %}
{% set blockClasses = ['hidden-desktop']|merge(blockClasses) %}
{% endif %}
<div class=\"cms-block {{ blockClasses|join(' ') }}\"
style=\"{% if blockBgColor %} background-color: {{ blockBgColor }};{% endif %}\">
{% block section_content_block_background_image %}
{% if block.backgroundMedia %}
{% sw_thumbnails 'cms-block-background' with {
media: block.backgroundMedia,
attributes: {
class: \"cms-block-background media-mode--\" ~ block.backgroundMediaMode
}
} %}
{% endif %}
{% endblock %}
{% block section_content_block_container %}
<div class=\"cms-block-container\"
style=\"{% if padding %}padding: {{ padding }};{% endif %}\">
{% block section_content_block_row %}
<div class=\"cms-block-container-row row cms-row {{ sidebarClasses }}\">
{% sw_include \"@Storefront/storefront/block/cms-block-\" ~ block.type ~ \".html.twig\" ignore missing %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}", "@econdWebAnalytics/storefront/section/cms-section-block-container.html.twig", "/var/www/shopware6/custom/plugins/econdWebAnalytics/src/Resources/views/storefront/section/cms-section-block-container.html.twig");
}
}