var/cache/dev_h41800f5fdfafa409ea382bf45d0f7c63/twig/1b/1bd98f71d070f0d25c7726d3c4651d0b4a46f11abd5a82e8d20e5b19d7360f32.php line 130

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. /* @Tuerschild_2/storefront/page/content/detail.html.twig */
  16. class __TwigTemplate_6326c7c9438a058ddbe49d8471fa9e2a9ba1cfcf014a76344c7c9d28d79ca331 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.             'page_content_sections_inner' => [$this'block_page_content_sections_inner'],
  26.             'page_content_section' => [$this'block_page_content_section'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@Storefront/storefront/page/content/detail.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Tuerschild_2/storefront/page/content/detail.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Tuerschild_2/storefront/page/content/detail.html.twig"));
  41.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/detail.html.twig""@Tuerschild_2/storefront/page/content/detail.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_page_content_sections_inner($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_sections_inner"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_sections_inner"));
  56.         // line 4
  57.         echo "    <div class=\"cms-sections\">
  58.         ";
  59.         // line 5
  60.         $context['_parent'] = $context;
  61.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["cmsPage"] ?? null), "sections", [], "any"falsefalsefalse5));
  62.         $context['loop'] = [
  63.           'parent' => $context['_parent'],
  64.           'index0' => 0,
  65.           'index'  => 1,
  66.           'first'  => true,
  67.         ];
  68.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  69.             $length count($context['_seq']);
  70.             $context['loop']['revindex0'] = $length 1;
  71.             $context['loop']['revindex'] = $length;
  72.             $context['loop']['length'] = $length;
  73.             $context['loop']['last'] = === $length;
  74.         }
  75.         foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  76.             // line 6
  77.             echo "            ";
  78.             $context["sectionBgColor"] = sw_get_attribute($this->env$this->source$context["section"], "backgroundColor", [], "any"falsefalsefalse6);
  79.             // line 7
  80.             echo "            ";
  81.             $context["sectionBgImg"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter']->encodeMediaUrl(sw_get_attribute($this->env$this->source$context["section"], "backgroundMedia", [], "any"falsefalsefalse7));
  82.             // line 8
  83.             echo "            ";
  84.             $context["sectionBgImgMode"] = sw_get_attribute($this->env$this->source$context["section"], "backgroundMediaMode", [], "any"falsefalsefalse8);
  85.             // line 9
  86.             echo "
  87.             ";
  88.             // line 10
  89.             $context["sectionClasses"] = [=> sw_get_attribute($this->env$this->source$context["section"], "cssClass", [], "any"falsefalsefalse10), => ("pos-" sw_get_attribute($this->env$this->source$context["section"], "position", [], "any"falsefalsefalse10)), => ("cms-section-" sw_get_attribute($this->env$this->source$context["section"], "type", [], "any"falsefalsefalse10))];
  90.             // line 11
  91.             echo "
  92.             ";
  93.             // line 12
  94.             if (($context["sectionBgImg"] ?? null)) {
  95.                 // line 13
  96.                 echo "                ";
  97.                 $context["sectionClasses"] = twig_array_merge([=> "bg-image"], ($context["sectionClasses"] ?? null));
  98.                 // line 14
  99.                 echo "            ";
  100.             }
  101.             // line 15
  102.             echo "
  103.             ";
  104.             // line 16
  105.             if (($context["sectionBgColor"] ?? null)) {
  106.                 // line 17
  107.                 echo "                ";
  108.                 $context["sectionClasses"] = twig_array_merge([=> "bg-color"], ($context["sectionClasses"] ?? null));
  109.                 // line 18
  110.                 echo "            ";
  111.             }
  112.             // line 19
  113.             echo "
  114.             ";
  115.             // line 20
  116.             $this->displayBlock('page_content_section'$context$blocks);
  117.             // line 27
  118.             echo "        ";
  119.             ++$context['loop']['index0'];
  120.             ++$context['loop']['index'];
  121.             $context['loop']['first'] = false;
  122.             if (isset($context['loop']['length'])) {
  123.                 --$context['loop']['revindex0'];
  124.                 --$context['loop']['revindex'];
  125.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  126.             }
  127.         }
  128.         $_parent $context['_parent'];
  129.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  130.         $context array_intersect_key($context$_parent) + $_parent;
  131.         // line 28
  132.         echo "    </div>
  133. ";
  134.         
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  136.         
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  138.     }
  139.     // line 20
  140.     public function block_page_content_section($context, array $blocks = [])
  141.     {
  142.         $macros $this->macros;
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section"));
  145.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section"));
  147.         // line 21
  148.         echo "                <div class=\"cms-section ";
  149.         echo sw_escape_filter($this->envtwig_join_filter(($context["sectionClasses"] ?? null), " "), "html"nulltrue);
  150.         echo "\"
  151.                      style=\"";
  152.         // line 22
  153.         if (($context["sectionBgColor"] ?? null)) {
  154.             echo "background-color: ";
  155.             echo sw_escape_filter($this->env, ($context["sectionBgColor"] ?? null), "html"nulltrue);
  156.             echo ";";
  157.         }
  158.         if (($context["sectionBgImg"] ?? null)) {
  159.             echo "background-image: url(";
  160.             echo sw_escape_filter($this->env, ($context["sectionBgImg"] ?? null), "html"nulltrue);
  161.             echo ");background-size: ";
  162.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["section"] ?? null), "backgroundMediaMode", [], "any"falsefalsefalse22), "html"nulltrue);
  163.             echo ";";
  164.         }
  165.         echo "\">
  166.                     ";
  167.         // line 24
  168.         ((function () use ($context$blocks) {
  169.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  170.             $includeTemplate $finder->find((("@Storefront/storefront/section/cms-section-" sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "type", [], "any"falsefalsefalse24)) . ".html.twig"));
  171.             return $this->loadTemplate($includeTemplate ?? null"@Tuerschild_2/storefront/page/content/detail.html.twig"24);
  172.         })())->display($context);
  173.         // line 25
  174.         echo "                </div>
  175.             ";
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     public function getTemplateName()
  182.     {
  183.         return "@Tuerschild_2/storefront/page/content/detail.html.twig";
  184.     }
  185.     public function isTraitable()
  186.     {
  187.         return false;
  188.     }
  189.     public function getDebugInfo()
  190.     {
  191.         return array (  194 => 25,  186 => 24,  170 => 22,  165 => 21,  155 => 20,  144 => 28,  130 => 27,  128 => 20,  125 => 19,  122 => 18,  119 => 17,  117 => 16,  114 => 15,  111 => 14,  108 => 13,  106 => 12,  103 => 11,  101 => 10,  98 => 9,  95 => 8,  92 => 7,  89 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 2,);
  192.     }
  193.     public function getSourceContext()
  194.     {
  195.         return new Source("{% sw_extends '@Storefront/storefront/page/content/detail.html.twig' %}
  196. {% block page_content_sections_inner %}
  197.     <div class=\"cms-sections\">
  198.         {% for section in cmsPage.sections %}
  199.             {% set sectionBgColor = section.backgroundColor %}
  200.             {% set sectionBgImg = section.backgroundMedia|sw_encode_media_url %}
  201.             {% set sectionBgImgMode = section.backgroundMediaMode %}
  202.             {% set sectionClasses = [section.cssClass, 'pos-' ~ section.position, 'cms-section-' ~ section.type] %}
  203.             {% if sectionBgImg %}
  204.                 {% set sectionClasses = ['bg-image']|merge(sectionClasses) %}
  205.             {% endif %}
  206.             {% if sectionBgColor %}
  207.                 {% set sectionClasses = ['bg-color']|merge(sectionClasses) %}
  208.             {% endif %}
  209.             {% block page_content_section %}
  210.                 <div class=\"cms-section {{ sectionClasses|join(' ') }}\"
  211.                      style=\"{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}\">
  212.                     {% sw_include \"@Storefront/storefront/section/cms-section-\" ~ section.type ~ \".html.twig\" %}
  213.                 </div>
  214.             {% endblock %}
  215.         {% endfor %}
  216.     </div>
  217. {% endblock %}
  218. ""@Tuerschild_2/storefront/page/content/detail.html.twig""/data/www/stage.tuerschildshop/custom/plugins/Tuerschild_2/src/Resources/views/storefront/page/content/detail.html.twig");
  219.     }
  220. }