var/cache/dev_h00fd8923ecf393ec0b25403e00167bec/twig/d3/d392a5c55ad31aff7d55f90197c303bdfd41ade8ce5eb3a284a8e3dc212ecd2f.php line 194

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