var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/f0/f09eb8e4083099e887edaec85b956c4c047f93e4d2600df4eea22eb60b922e01.php line 151

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