var/cache/dev_h41800f5fdfafa409ea382bf45d0f7c63/twig/de/de802788c0cc680d5be8e4ba1ff3c72331ae624dd9a4550c16c66bc37ce69224.php line 47

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