var/cache/dev_h24eaf6979abf10b67456256024eb9e5e/twig/3f/3fd680e53a85c621d49e1aee5d4aeb1c1ab9b42d664f9ee5f2d67c3182e98206.php line 49

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