<?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;
/* @Storefront/storefront/section/cms-section-block-container.html.twig */
class __TwigTemplate_af2e3e89e1b80e1dcacfe8db23fff23c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$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 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", "@Storefront/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", "@Storefront/storefront/section/cms-section-block-container.html.twig"));
// line 1
$this->displayBlock('section_content_block', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
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 2
echo "
";
// line 3
$context["top"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginTop", [], "any", false, false, false, 3)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginTop", [], "any", false, false, false, 3)) : (0));
// line 4
echo " ";
$context["right"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginRight", [], "any", false, false, false, 4)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginRight", [], "any", false, false, false, 4)) : (0));
// line 5
echo " ";
$context["bottom"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginBottom", [], "any", false, false, false, 5)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginBottom", [], "any", false, false, false, 5)) : (0));
// line 6
echo " ";
$context["left"] = ((sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginLeft", [], "any", false, false, false, 6)) ? (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "marginLeft", [], "any", false, false, false, 6)) : (0));
// line 7
echo "
";
// line 8
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 "
";
// line 12
$context["blockBgColor"] = sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "backgroundColor", [], "any", false, false, false, 12);
// line 13
echo "
";
// line 14
$context["blockClasses"] = [0 => sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "cssClass", [], "any", false, false, false, 14), 1 => ("pos-" . sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "position", [], "any", false, false, false, 14)), 2 => ("cms-block-" . sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "type", [], "any", false, false, false, 14))];
// line 15
echo "
";
// line 16
if (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "backgroundMedia", [], "any", false, false, false, 16)) {
// line 17
echo " ";
$context["blockClasses"] = twig_array_merge([0 => "bg-image"], ($context["blockClasses"] ?? null));
// line 18
echo " ";
}
// line 19
echo "
";
// line 20
if (($context["blockBgColor"] ?? null)) {
// line 21
echo " ";
$context["blockClasses"] = twig_array_merge([0 => "bg-color"], ($context["blockClasses"] ?? null));
// line 22
echo " ";
}
// line 23
echo "
";
// line 24
$context["columns"] = 3;
// line 25
echo " ";
$context["isInSidebar"] = (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "sectionPosition", [], "any", false, false, false, 25) == "sidebar");
// line 26
echo " ";
$context["sidebarClasses"] = "";
// line 27
echo "
";
// line 28
if ((($context["isInSidebar"] ?? null) == true)) {
// line 29
echo " ";
$context["sidebarClasses"] = "has--sidebar";
// line 30
echo " ";
}
// line 31
echo "
<div class=\"cms-block ";
// line 32
echo sw_escape_filter($this->env, twig_join_filter(($context["blockClasses"] ?? null), " "), "html", null, true);
echo "\"
style=\"";
// line 33
if (($context["blockBgColor"] ?? null)) {
echo " background-color: ";
echo sw_escape_filter($this->env, ($context["blockBgColor"] ?? null), "html", null, true);
echo ";";
}
echo "\">
";
// line 34
$this->displayBlock('section_content_block_background_image', $context, $blocks);
// line 44
echo "
";
// line 45
$this->displayBlock('section_content_block_container', $context, $blocks);
// line 56
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 34
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 35
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["block"] ?? null), "backgroundMedia", [], "any", false, false, false, 35)) {
// line 36
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, "@Storefront/storefront/section/cms-section-block-container.html.twig", 36);
})())->display(twig_array_merge($context, ["media" => sw_get_attribute($this->env, $this->source, // line 37
($context["block"] ?? null), "backgroundMedia", [], "any", false, false, false, 37), "attributes" => ["class" => ("cms-block-background media-mode--" . sw_get_attribute($this->env, $this->source, // line 39
($context["block"] ?? null), "backgroundMediaMode", [], "any", false, false, false, 39))], "name" => "cms-block-background"]));
// line 42
echo " ";
}
// line 43
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 45
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 46
echo " <div class=\"cms-block-container\"
style=\"";
// line 47
if (($context["padding"] ?? null)) {
echo "padding: ";
echo sw_escape_filter($this->env, ($context["padding"] ?? null), "html", null, true);
echo ";";
}
echo "\">
";
// line 49
$this->displayBlock('section_content_block_row', $context, $blocks);
// line 54
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 49
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 50
echo " <div class=\"cms-block-container-row row cms-row ";
echo sw_escape_filter($this->env, ($context["sidebarClasses"] ?? null), "html", null, true);
echo "\">
";
// line 51
$__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, 51)) . ".html.twig"));
return $this->loadTemplate($includeTemplate ?? null, "@Storefront/storefront/section/cms-section-block-container.html.twig", 51);
})());
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display($context);
}
// line 52
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/section/cms-section-block-container.html.twig";
}
public function getDebugInfo()
{
return array ( 281 => 52, 265 => 51, 260 => 50, 250 => 49, 239 => 54, 237 => 49, 228 => 47, 225 => 46, 215 => 45, 205 => 43, 202 => 42, 200 => 39, 199 => 37, 191 => 36, 188 => 35, 178 => 34, 167 => 56, 165 => 45, 162 => 44, 160 => 34, 152 => 33, 148 => 32, 145 => 31, 142 => 30, 139 => 29, 137 => 28, 134 => 27, 131 => 26, 128 => 25, 126 => 24, 123 => 23, 120 => 22, 117 => 21, 115 => 20, 112 => 19, 109 => 18, 106 => 17, 104 => 16, 101 => 15, 99 => 14, 96 => 13, 94 => 12, 91 => 11, 88 => 10, 85 => 9, 83 => 8, 80 => 7, 77 => 6, 74 => 5, 71 => 4, 69 => 3, 66 => 2, 47 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
<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 %}
", "@Storefront/storefront/section/cms-section-block-container.html.twig", "/var/www/html/htdocs/vendor/shopware/storefront/Resources/views/storefront/section/cms-section-block-container.html.twig");
}
}