var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/50/502d1d8216e6d426e227d8dcad453f5cef853bd7ce678cb5af2ea97b009e5bfb.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use Twig\Error\LoaderError;
  5. use Twig\Error\RuntimeError;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @Storefront/storefront/section/cms-section-block-container.html.twig */
  15. class __TwigTemplate_5e80bb6901193ebec51e57d94289c34419f43f9c753ceb3ed95580191b877939 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.             'section_content_block' => [$this'block_section_content_block'],
  26.             'section_content_block_background_image' => [$this'block_section_content_block_background_image'],
  27.             'section_content_block_container' => [$this'block_section_content_block_container'],
  28.             'section_content_block_row' => [$this'block_section_content_block_row'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/section/cms-section-block-container.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/section/cms-section-block-container.html.twig"));
  38.         // line 1
  39.         $this->displayBlock('section_content_block'$context$blocks);
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     public function block_section_content_block($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block"));
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block"));
  52.         // line 2
  53.         echo "
  54.     ";
  55.         // line 3
  56.         $context["top"] = ((sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginTop", [], "any"falsefalsefalse3)) ? (sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginTop", [], "any"falsefalsefalse3)) : (0));
  57.         // line 4
  58.         echo "    ";
  59.         $context["right"] = ((sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginRight", [], "any"falsefalsefalse4)) ? (sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginRight", [], "any"falsefalsefalse4)) : (0));
  60.         // line 5
  61.         echo "    ";
  62.         $context["bottom"] = ((sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginBottom", [], "any"falsefalsefalse5)) ? (sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginBottom", [], "any"falsefalsefalse5)) : (0));
  63.         // line 6
  64.         echo "    ";
  65.         $context["left"] = ((sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginLeft", [], "any"falsefalsefalse6)) ? (sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "marginLeft", [], "any"falsefalsefalse6)) : (0));
  66.         // line 7
  67.         echo "
  68.     ";
  69.         // line 8
  70.         if ((((($context["top"] ?? null) || ($context["right"] ?? null)) || ($context["bottom"] ?? null)) || ($context["left"] ?? null))) {
  71.             // line 9
  72.             echo "        ";
  73.             $context["padding"] = ((((((($context["top"] ?? null) . " ") . ($context["right"] ?? null)) . " ") . ($context["bottom"] ?? null)) . " ") . ($context["left"] ?? null));
  74.             // line 10
  75.             echo "    ";
  76.         }
  77.         // line 11
  78.         echo "
  79.     ";
  80.         // line 12
  81.         $context["blockBgColor"] = sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "backgroundColor", [], "any"falsefalsefalse12);
  82.         // line 13
  83.         echo "
  84.     ";
  85.         // line 14
  86.         $context["blockClasses"] = [=> sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "cssClass", [], "any"falsefalsefalse14), => ("pos-" sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "position", [], "any"falsefalsefalse14)), => ("cms-block-" sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "type", [], "any"falsefalsefalse14))];
  87.         // line 15
  88.         echo "
  89.     ";
  90.         // line 16
  91.         if (sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "backgroundMedia", [], "any"falsefalsefalse16)) {
  92.             // line 17
  93.             echo "        ";
  94.             $context["blockClasses"] = twig_array_merge([=> "bg-image"], ($context["blockClasses"] ?? null));
  95.             // line 18
  96.             echo "    ";
  97.         }
  98.         // line 19
  99.         echo "
  100.     ";
  101.         // line 20
  102.         if (($context["blockBgColor"] ?? null)) {
  103.             // line 21
  104.             echo "        ";
  105.             $context["blockClasses"] = twig_array_merge([=> "bg-color"], ($context["blockClasses"] ?? null));
  106.             // line 22
  107.             echo "    ";
  108.         }
  109.         // line 23
  110.         echo "
  111.     ";
  112.         // line 24
  113.         $context["columns"] = 3;
  114.         // line 25
  115.         echo "    ";
  116.         $context["isInSidebar"] = (=== twig_compare(sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "sectionPosition", [], "any"falsefalsefalse25), "sidebar"));
  117.         // line 26
  118.         echo "    ";
  119.         $context["sidebarClasses"] = "";
  120.         // line 27
  121.         echo "
  122.     ";
  123.         // line 28
  124.         if ((=== twig_compare(($context["isInSidebar"] ?? null), true))) {
  125.             // line 29
  126.             echo "        ";
  127.             $context["sidebarClasses"] = "has--sidebar";
  128.             // line 30
  129.             echo "    ";
  130.         }
  131.         // line 31
  132.         echo "
  133.     <div class=\"cms-block ";
  134.         // line 32
  135.         echo twig_escape_filter($this->envtwig_join_filter(($context["blockClasses"] ?? null), " "), "html"nulltrue);
  136.         echo "\"
  137.          style=\"";
  138.         // line 33
  139.         if (($context["blockBgColor"] ?? null)) {
  140.             echo " background-color: ";
  141.             echo twig_escape_filter($this->env, ($context["blockBgColor"] ?? null), "html"nulltrue);
  142.             echo ";";
  143.         }
  144.         echo "\">
  145.         ";
  146.         // line 34
  147.         $this->displayBlock('section_content_block_background_image'$context$blocks);
  148.         // line 44
  149.         echo "
  150.         ";
  151.         // line 45
  152.         $this->displayBlock('section_content_block_container'$context$blocks);
  153.         // line 56
  154.         echo "    </div>
  155. ";
  156.         
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  158.         
  159.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  160.     }
  161.     // line 34
  162.     public function block_section_content_block_background_image($context, array $blocks = [])
  163.     {
  164.         $macros $this->macros;
  165.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_background_image"));
  167.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_background_image"));
  169.         // line 35
  170.         echo "            ";
  171.         if (sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "backgroundMedia", [], "any"falsefalsefalse35)) {
  172.             // line 36
  173.             echo "                ";
  174.             ((function () use ($context$blocks) {
  175.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  176.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
  177.                 return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/section/cms-section-block-container.html.twig"36);
  178.             })())->display(twig_array_merge($context, ["media" => sw_get_attribute($this->env$this->source,             // line 37
  179. ($context["block"] ?? null), "backgroundMedia", [], "any"falsefalsefalse37), "attributes" => ["class" => ("cms-block-background media-mode--" sw_get_attribute($this->env$this->source,             // line 39
  180. ($context["block"] ?? null), "backgroundMediaMode", [], "any"falsefalsefalse39))], "name" => "cms-block-background"]));
  181.             // line 42
  182.             echo "            ";
  183.         }
  184.         // line 43
  185.         echo "        ";
  186.         
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  188.         
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  190.     }
  191.     // line 45
  192.     public function block_section_content_block_container($context, array $blocks = [])
  193.     {
  194.         $macros $this->macros;
  195.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  196.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_container"));
  197.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  198.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_container"));
  199.         // line 46
  200.         echo "            <div class=\"cms-block-container\"
  201.                  style=\"";
  202.         // line 47
  203.         if (($context["padding"] ?? null)) {
  204.             echo "padding: ";
  205.             echo twig_escape_filter($this->env, ($context["padding"] ?? null), "html"nulltrue);
  206.             echo ";";
  207.         }
  208.         echo "\">
  209.                 ";
  210.         // line 49
  211.         $this->displayBlock('section_content_block_row'$context$blocks);
  212.         // line 54
  213.         echo "            </div>
  214.         ";
  215.         
  216.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  217.         
  218.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  219.     }
  220.     // line 49
  221.     public function block_section_content_block_row($context, array $blocks = [])
  222.     {
  223.         $macros $this->macros;
  224.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  225.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_row"));
  226.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  227.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_row"));
  228.         // line 50
  229.         echo "                    <div class=\"cms-block-container-row row cms-row ";
  230.         echo twig_escape_filter($this->env, ($context["sidebarClasses"] ?? null), "html"nulltrue);
  231.         echo "\">
  232.                         ";
  233.         // line 51
  234.         $__internal_compile_0 null;
  235.         try {
  236.             $__internal_compile_0 =             ((function () use ($context$blocks) {
  237.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  238.                 $includeTemplate $finder->find((("@Storefront/storefront/block/cms-block-" sw_get_attribute($this->env$this->source, ($context["block"] ?? null), "type", [], "any"falsefalsefalse51)) . ".html.twig"));
  239.                 return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/section/cms-section-block-container.html.twig"51);
  240.             })());
  241.         } catch (LoaderError $e) {
  242.             // ignore missing template
  243.         }
  244.         if ($__internal_compile_0) {
  245.             $__internal_compile_0->display($context);
  246.         }
  247.         // line 52
  248.         echo "                    </div>
  249.                 ";
  250.         
  251.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  252.         
  253.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  254.     }
  255.     public function getTemplateName()
  256.     {
  257.         return "@Storefront/storefront/section/cms-section-block-container.html.twig";
  258.     }
  259.     public function getDebugInfo()
  260.     {
  261.         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,);
  262.     }
  263.     public function getSourceContext()
  264.     {
  265.         return new Source("{% block section_content_block %}
  266.     {% set top = block.marginTop ? block.marginTop : 0 %}
  267.     {% set right = block.marginRight ? block.marginRight : 0 %}
  268.     {% set bottom = block.marginBottom ? block.marginBottom : 0 %}
  269.     {% set left = block.marginLeft ? block.marginLeft : 0 %}
  270.     {% if top or right or bottom or left %}
  271.         {% set padding = top ~ \" \" ~ right ~ \" \" ~ bottom ~ \" \" ~ left %}
  272.     {% endif %}
  273.     {% set blockBgColor = block.backgroundColor %}
  274.     {% set blockClasses = [block.cssClass, 'pos-' ~ block.position, 'cms-block-' ~ block.type] %}
  275.     {% if block.backgroundMedia %}
  276.         {% set blockClasses = ['bg-image']|merge(blockClasses) %}
  277.     {% endif %}
  278.     {% if blockBgColor %}
  279.         {% set blockClasses = ['bg-color']|merge(blockClasses) %}
  280.     {% endif %}
  281.     {% set columns = 3 %}
  282.     {% set isInSidebar = block.sectionPosition == 'sidebar' %}
  283.     {% set sidebarClasses = '' %}
  284.     {% if isInSidebar == true %}
  285.         {% set sidebarClasses = 'has--sidebar' %}
  286.     {% endif %}
  287.     <div class=\"cms-block {{ blockClasses|join(' ') }}\"
  288.          style=\"{% if blockBgColor %} background-color: {{ blockBgColor }};{% endif %}\">
  289.         {% block section_content_block_background_image %}
  290.             {% if block.backgroundMedia %}
  291.                 {% sw_thumbnails 'cms-block-background' with {
  292.                     media: block.backgroundMedia,
  293.                     attributes: {
  294.                         class: \"cms-block-background media-mode--\" ~ block.backgroundMediaMode
  295.                     }
  296.                     } %}
  297.             {% endif %}
  298.         {% endblock %}
  299.         {% block section_content_block_container %}
  300.             <div class=\"cms-block-container\"
  301.                  style=\"{% if padding %}padding: {{ padding }};{% endif %}\">
  302.                 {% block section_content_block_row %}
  303.                     <div class=\"cms-block-container-row row cms-row {{ sidebarClasses }}\">
  304.                         {% sw_include \"@Storefront/storefront/block/cms-block-\" ~ block.type ~ \".html.twig\" ignore missing %}
  305.                     </div>
  306.                 {% endblock %}
  307.             </div>
  308.         {% endblock %}
  309.     </div>
  310. {% endblock %}
  311. ""@Storefront/storefront/section/cms-section-block-container.html.twig""/www/htdocs/w01c128a/atngmbh.webneo-demo.de/www/vendor/shopware/storefront/Resources/views/storefront/section/cms-section-block-container.html.twig");
  312.     }
  313. }