var/cache/dev_h96138ee5f5ee4f9f280391b7ea87ede1/twig/35/35cade1d51928e9ff2dedb53de5dc770fefc501e974d12048a01f8da574f2ea7.php line 52

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. /* @SalvanaPferde2022/storefront/page/content/index.html.twig */
  16. class __TwigTemplate_84ba724b2467620cb71231ae0d75ebd3c888f02374b52262cb0df542b2cdec3b 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' => [$this'block_page_content'],
  26.             'cms_breadcrumb' => [$this'block_cms_breadcrumb'],
  27.             'page_content_blocks' => [$this'block_page_content_blocks'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "@Storefront/storefront/page/content/index.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SalvanaPferde2022/storefront/page/content/index.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SalvanaPferde2022/storefront/page/content/index.html.twig"));
  42.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig""@SalvanaPferde2022/storefront/page/content/index.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 3
  50.     public function block_page_content($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  57.         // line 4
  58.         echo "  ";
  59.         if (((twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse4), "sections", [], "any"falsefalsefalse4)) && (=== twig_compare(twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse4), "sections", [], "any"falsefalsefalse4), "first", [], "method"falsefalsefalse4), "blocks", [], "any"falsefalsefalse4)), 1))) && twig_in_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse4), "sections", [], "any"falsefalsefalse4), "first", [], "method"falsefalsefalse4), "blocks", [], "any"falsefalsefalse4), "first", [], "method"falsefalsefalse4), "type", [], "any"falsefalsefalse4), [=> "image"=> "text-on-image"]))) {
  60.             // line 5
  61.             echo "    ";
  62.             $context["teaserKey"] = (($__internal_compile_0 sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse5), "sections", [], "any"falsefalsefalse5), "getKeys", [], "method"falsefalsefalse5)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null);
  63.             // line 6
  64.             echo "    ";
  65.             $context["hasTeaser"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse6), "sections", [], "any"falsefalsefalse6), "get", [=> ($context["teaserKey"] ?? null)], "method"falsefalsefalse6);
  66.             // line 7
  67.             echo "    ";
  68.             $context["dummy"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse7), "sections", [], "any"falsefalsefalse7), "remove", [=> ($context["teaserKey"] ?? null)], "method"falsefalsefalse7);
  69.             // line 8
  70.             echo "  ";
  71.         } else {
  72.             // line 9
  73.             echo "    ";
  74.             $context["hasTeaser"] = 0;
  75.             // line 10
  76.             echo "  ";
  77.         }
  78.         // line 11
  79.         echo "
  80.   ";
  81.         // line 12
  82.         if (($context["hasTeaser"] ?? null)) {
  83.             // line 13
  84.             echo "    ";
  85.             $context["section"] = ($context["hasTeaser"] ?? null);
  86.             // line 14
  87.             echo "    ";
  88.             $context["sectionBgColor"] = sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "backgroundColor", [], "any"falsefalsefalse14);
  89.             // line 15
  90.             echo "    ";
  91.             $context["sectionBgImg"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter']->encodeMediaUrl(sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "backgroundMedia", [], "any"falsefalsefalse15));
  92.             // line 16
  93.             echo "    ";
  94.             $context["sectionBgImgMode"] = sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "backgroundMediaMode", [], "any"falsefalsefalse16);
  95.             // line 17
  96.             echo "
  97.     ";
  98.             // line 18
  99.             $context["sectionClasses"] = [=> sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "cssClass", [], "any"falsefalsefalse18), => ("pos-" sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "position", [], "any"falsefalsefalse18)), => ("cms-section-" sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "type", [], "any"falsefalsefalse18))];
  100.             // line 19
  101.             echo "
  102.     ";
  103.             // line 20
  104.             if (($context["sectionBgImg"] ?? null)) {
  105.                 // line 21
  106.                 echo "      ";
  107.                 $context["sectionClasses"] = twig_array_merge([=> "bg-image"], ($context["sectionClasses"] ?? null));
  108.                 // line 22
  109.                 echo "    ";
  110.             }
  111.             // line 23
  112.             echo "
  113.     ";
  114.             // line 24
  115.             if (($context["sectionBgColor"] ?? null)) {
  116.                 // line 25
  117.                 echo "      ";
  118.                 $context["sectionClasses"] = twig_array_merge([=> "bg-color"], ($context["sectionClasses"] ?? null));
  119.                 // line 26
  120.                 echo "    ";
  121.             }
  122.             // line 27
  123.             echo "    <div class=\"cms-teaser\"
  124.          style=\"";
  125.             // line 28
  126.             if (($context["sectionBgColor"] ?? null)) {
  127.                 echo "background-color: ";
  128.                 echo sw_escape_filter($this->env, ($context["sectionBgColor"] ?? null), "html"nulltrue);
  129.                 echo ";";
  130.             }
  131.             if (($context["sectionBgImg"] ?? null)) {
  132.                 echo "background-image: url(";
  133.                 echo sw_escape_filter($this->env, ($context["sectionBgImg"] ?? null), "html"nulltrue);
  134.                 echo ");background-size: ";
  135.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["section"] ?? null), "backgroundMediaMode", [], "any"falsefalsefalse28), "html"nulltrue);
  136.                 echo ";";
  137.             }
  138.             echo "\">
  139.       ";
  140.             // line 29
  141.             ((function () use ($context$blocks) {
  142.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  143.                 $includeTemplate $finder->find((("@Storefront/storefront/section/cms-section-" sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "type", [], "any"falsefalsefalse29)) . ".html.twig"));
  144.                 return $this->loadTemplate($includeTemplate ?? null"@SalvanaPferde2022/storefront/page/content/index.html.twig"29);
  145.             })())->display($context);
  146.             // line 30
  147.             echo "    </div>
  148.   ";
  149.         }
  150.         // line 32
  151.         echo "
  152.   ";
  153.         // line 33
  154.         if ((!== twig_compare(twig_lower_filter($this->env, ($context["controllerAction"] ?? null)), "home"))) {
  155.             // line 34
  156.             echo "    <div class=\"breadcrumb cms-breadcrump container\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
  157.       ";
  158.             // line 35
  159.             $this->displayBlock('cms_breadcrumb'$context$blocks);
  160.             // line 38
  161.             echo "    </div>
  162.   ";
  163.         }
  164.         // line 40
  165.         echo "
  166.   <div class=\"cms-page\">
  167.     ";
  168.         // line 42
  169.         $this->displayBlock('page_content_blocks'$context$blocks);
  170.         // line 45
  171.         echo "  </div>
  172. ";
  173.         
  174.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  175.         
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  177.     }
  178.     // line 35
  179.     public function block_cms_breadcrumb($context, array $blocks = [])
  180.     {
  181.         $macros $this->macros;
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_breadcrumb"));
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_breadcrumb"));
  186.         // line 36
  187.         echo "
  188.       ";
  189.         
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  191.         
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  193.     }
  194.     // line 42
  195.     public function block_page_content_blocks($context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_blocks"));
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_blocks"));
  202.         // line 43
  203.         echo "      ";
  204.         $this->loadTemplate("@SalvanaPferde2022/storefront/page/content/detail.html.twig""@SalvanaPferde2022/storefront/page/content/index.html.twig"43)->display(twig_array_merge($context, ["cmsPage" => sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse43)]));
  205.         // line 44
  206.         echo "    ";
  207.         
  208.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  209.         
  210.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  211.     }
  212.     public function getTemplateName()
  213.     {
  214.         return "@SalvanaPferde2022/storefront/page/content/index.html.twig";
  215.     }
  216.     public function isTraitable()
  217.     {
  218.         return false;
  219.     }
  220.     public function getDebugInfo()
  221.     {
  222.         return array (  230 => 44,  227 => 43,  217 => 42,  206 => 36,  196 => 35,  185 => 45,  183 => 42,  179 => 40,  175 => 38,  173 => 35,  170 => 34,  168 => 33,  165 => 32,  161 => 30,  153 => 29,  138 => 28,  135 => 27,  132 => 26,  129 => 25,  127 => 24,  124 => 23,  121 => 22,  118 => 21,  116 => 20,  113 => 19,  111 => 18,  108 => 17,  105 => 16,  102 => 15,  99 => 14,  96 => 13,  94 => 12,  91 => 11,  88 => 10,  85 => 9,  82 => 8,  79 => 7,  76 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 2,);
  223.     }
  224.     public function getSourceContext()
  225.     {
  226.         return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
  227. {% block page_content %}
  228.   {% if page.cmsPage.sections|length and page.cmsPage.sections.first().blocks|length == 1 and (page.cmsPage.sections.first().blocks.first().type in ['image','text-on-image']) %}
  229.     {% set teaserKey = page.cmsPage.sections.getKeys()[0] %}
  230.     {% set hasTeaser = page.cmsPage.sections.get(teaserKey) %}
  231.     {% set dummy = page.cmsPage.sections.remove(teaserKey) %}
  232.   {% else %}
  233.     {% set hasTeaser = 0 %}
  234.   {% endif %}
  235.   {% if hasTeaser %}
  236.     {% set section = hasTeaser %}
  237.     {% set sectionBgColor = section.backgroundColor %}
  238.     {% set sectionBgImg = section.backgroundMedia|sw_encode_media_url %}
  239.     {% set sectionBgImgMode = section.backgroundMediaMode %}
  240.     {% set sectionClasses = [section.cssClass, 'pos-' ~ section.position, 'cms-section-' ~ section.type] %}
  241.     {% if sectionBgImg %}
  242.       {% set sectionClasses = ['bg-image']|merge(sectionClasses) %}
  243.     {% endif %}
  244.     {% if sectionBgColor %}
  245.       {% set sectionClasses = ['bg-color']|merge(sectionClasses) %}
  246.     {% endif %}
  247.     <div class=\"cms-teaser\"
  248.          style=\"{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}\">
  249.       {% sw_include \"@Storefront/storefront/section/cms-section-\" ~ section.type ~ \".html.twig\" %}
  250.     </div>
  251.   {% endif %}
  252.   {% if controllerAction|lower != 'home' %}
  253.     <div class=\"breadcrumb cms-breadcrump container\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
  254.       {% block cms_breadcrumb %}
  255.       {% endblock %}
  256.     </div>
  257.   {% endif %}
  258.   <div class=\"cms-page\">
  259.     {% block page_content_blocks %}
  260.       {% sw_include \"@Storefront/storefront/page/content/detail.html.twig\" with {'cmsPage': page.cmsPage} %}
  261.     {% endblock %}
  262.   </div>
  263. {% endblock %}
  264. ""@SalvanaPferde2022/storefront/page/content/index.html.twig""/var/www/vhosts/salvana.aix-dev.de/dev.salvana.com/src/custom/plugins/SalvanaPferde2022/src/Resources/views/storefront/page/content/index.html.twig");
  265.     }
  266. }