var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/74/74f55282a596529b678a5dafc6ab56c6d73c273c2036aa68a0007036095ad703.php line 51

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. /* @DreiscCmsPro/storefront/section/cms-section-block-container.html.twig */
  16. class __TwigTemplate_69a576a19b06f8668c5d5f10c32c6247 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_container' => [$this'block_section_content_block_container'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@FlinkCmsGridBuilder/storefront/section/cms-section-block-container.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@DreiscCmsPro/storefront/section/cms-section-block-container.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@DreiscCmsPro/storefront/section/cms-section-block-container.html.twig"));
  41.         $this->parent $this->loadTemplate("@FlinkCmsGridBuilder/storefront/section/cms-section-block-container.html.twig""@DreiscCmsPro/storefront/section/cms-section-block-container.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_section_content_block($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block"));
  56.         // line 4
  57.         echo "    ";
  58.         // line 5
  59.         echo "    ";
  60.         if (twig_test_empty(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "customFields", [], "any"falsefalsefalse5), "dreisc_cms_parent_block_id", [], "any"falsefalsefalse5))) {
  61.             // line 6
  62.             echo "        ";
  63.             $this->displayParentBlock("section_content_block"$context$blocks);
  64.             echo "
  65.     ";
  66.         } else {
  67.             // line 8
  68.             echo "        ";
  69.             // line 9
  70.             echo "        ";
  71.             if ((array_key_exists("parentBlockId"$context) && (($context["parentBlockId"] ?? null) == sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["block"] ?? null), "customFields", [], "any"falsefalsefalse9), "dreisc_cms_parent_block_id", [], "any"falsefalsefalse9)))) {
  72.                 // line 10
  73.                 echo "            ";
  74.                 $this->displayParentBlock("section_content_block"$context$blocks);
  75.                 echo "
  76.         ";
  77.             }
  78.             // line 12
  79.             echo "    ";
  80.         }
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     // line 15
  87.     public function block_section_content_block_container($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_container"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_content_block_container"));
  94.         // line 16
  95.         echo "    ";
  96.         if (array_key_exists("overrideMargin"$context)) {
  97.             // line 17
  98.             echo "        ";
  99.             $context["margin"] = ($context["overrideMargin"] ?? null);
  100.             // line 18
  101.             echo "    ";
  102.         }
  103.         // line 19
  104.         echo "
  105.     ";
  106.         // line 20
  107.         $this->displayParentBlock("section_content_block_container"$context$blocks);
  108.         echo "
  109. ";
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.     }
  115.     public function getTemplateName()
  116.     {
  117.         return "@DreiscCmsPro/storefront/section/cms-section-block-container.html.twig";
  118.     }
  119.     public function isTraitable()
  120.     {
  121.         return false;
  122.     }
  123.     public function getDebugInfo()
  124.     {
  125.         return array (  124 => 20,  121 => 19,  118 => 18,  115 => 17,  112 => 16,  102 => 15,  91 => 12,  85 => 10,  82 => 9,  80 => 8,  74 => 6,  71 => 5,  69 => 4,  59 => 3,  36 => 2,);
  126.     }
  127.     public function getSourceContext()
  128.     {
  129.         return new Source("{% sw_extends '@Storefront/storefront/section/cms-section-block-container.html.twig' %}
  130. {% block section_content_block %}
  131.     {# Make sure, that we only render the first level #}
  132.     {% if block.customFields.dreisc_cms_parent_block_id is empty %}
  133.         {{ parent() }}
  134.     {% else %}
  135.         {# In case of a block with a parent block id we check if the parentBlockId is set and matches #}
  136.         {% if parentBlockId is defined and parentBlockId == block.customFields.dreisc_cms_parent_block_id %}
  137.             {{ parent() }}
  138.         {% endif %}
  139.     {% endif %}
  140. {% endblock %}
  141. {% block section_content_block_container %}
  142.     {% if overrideMargin is defined %}
  143.         {% set margin = overrideMargin %}
  144.     {% endif %}
  145.     {{ parent() }}
  146. {% endblock %}
  147. ""@DreiscCmsPro/storefront/section/cms-section-block-container.html.twig""/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/store.shopware.com/dreisccmspro/src/Resources/views/storefront/section/cms-section-block-container.html.twig");
  148.     }
  149. }