<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SalvanaPferde2022/storefront/page/content/index.html.twig */
class __TwigTemplate_84ba724b2467620cb71231ae0d75ebd3c888f02374b52262cb0df542b2cdec3b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_content' => [$this, 'block_page_content'],
'cms_breadcrumb' => [$this, 'block_cms_breadcrumb'],
'page_content_blocks' => [$this, 'block_page_content_blocks'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/content/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SalvanaPferde2022/storefront/page/content/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SalvanaPferde2022/storefront/page/content/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig", "@SalvanaPferde2022/storefront/page/content/index.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_page_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content"));
// line 4
echo " ";
if (((twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 4), "sections", [], "any", false, false, false, 4)) && (0 === twig_compare(twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 4), "sections", [], "any", false, false, false, 4), "first", [], "method", false, false, false, 4), "blocks", [], "any", false, false, false, 4)), 1))) && twig_in_filter(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 4), "sections", [], "any", false, false, false, 4), "first", [], "method", false, false, false, 4), "blocks", [], "any", false, false, false, 4), "first", [], "method", false, false, false, 4), "type", [], "any", false, false, false, 4), [0 => "image", 1 => "text-on-image"]))) {
// line 5
echo " ";
$context["teaserKey"] = (($__internal_compile_0 = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 5), "sections", [], "any", false, false, false, 5), "getKeys", [], "method", false, false, false, 5)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null);
// line 6
echo " ";
$context["hasTeaser"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 6), "sections", [], "any", false, false, false, 6), "get", [0 => ($context["teaserKey"] ?? null)], "method", false, false, false, 6);
// line 7
echo " ";
$context["dummy"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 7), "sections", [], "any", false, false, false, 7), "remove", [0 => ($context["teaserKey"] ?? null)], "method", false, false, false, 7);
// line 8
echo " ";
} else {
// line 9
echo " ";
$context["hasTeaser"] = 0;
// line 10
echo " ";
}
// line 11
echo "
";
// line 12
if (($context["hasTeaser"] ?? null)) {
// line 13
echo " ";
$context["section"] = ($context["hasTeaser"] ?? null);
// line 14
echo " ";
$context["sectionBgColor"] = sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "backgroundColor", [], "any", false, false, false, 14);
// line 15
echo " ";
$context["sectionBgImg"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter']->encodeMediaUrl(sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "backgroundMedia", [], "any", false, false, false, 15));
// line 16
echo " ";
$context["sectionBgImgMode"] = sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "backgroundMediaMode", [], "any", false, false, false, 16);
// line 17
echo "
";
// line 18
$context["sectionClasses"] = [0 => sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "cssClass", [], "any", false, false, false, 18), 1 => ("pos-" . sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "position", [], "any", false, false, false, 18)), 2 => ("cms-section-" . sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "type", [], "any", false, false, false, 18))];
// line 19
echo "
";
// line 20
if (($context["sectionBgImg"] ?? null)) {
// line 21
echo " ";
$context["sectionClasses"] = twig_array_merge([0 => "bg-image"], ($context["sectionClasses"] ?? null));
// line 22
echo " ";
}
// line 23
echo "
";
// line 24
if (($context["sectionBgColor"] ?? null)) {
// line 25
echo " ";
$context["sectionClasses"] = twig_array_merge([0 => "bg-color"], ($context["sectionClasses"] ?? null));
// line 26
echo " ";
}
// line 27
echo " <div class=\"cms-teaser\"
style=\"";
// line 28
if (($context["sectionBgColor"] ?? null)) {
echo "background-color: ";
echo sw_escape_filter($this->env, ($context["sectionBgColor"] ?? null), "html", null, true);
echo ";";
}
if (($context["sectionBgImg"] ?? null)) {
echo "background-image: url(";
echo sw_escape_filter($this->env, ($context["sectionBgImg"] ?? null), "html", null, true);
echo ");background-size: ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "backgroundMediaMode", [], "any", false, false, false, 28), "html", null, true);
echo ";";
}
echo "\">
";
// line 29
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find((("@Storefront/storefront/section/cms-section-" . sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "type", [], "any", false, false, false, 29)) . ".html.twig"));
return $this->loadTemplate($includeTemplate ?? null, "@SalvanaPferde2022/storefront/page/content/index.html.twig", 29);
})())->display($context);
// line 30
echo " </div>
";
}
// line 32
echo "
";
// line 33
if ((0 !== twig_compare(twig_lower_filter($this->env, ($context["controllerAction"] ?? null)), "home"))) {
// line 34
echo " <div class=\"breadcrumb cms-breadcrump container\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
";
// line 35
$this->displayBlock('cms_breadcrumb', $context, $blocks);
// line 38
echo " </div>
";
}
// line 40
echo "
<div class=\"cms-page\">
";
// line 42
$this->displayBlock('page_content_blocks', $context, $blocks);
// line 45
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 35
public function block_cms_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cms_breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cms_breadcrumb"));
// line 36
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 42
public function block_page_content_blocks($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content_blocks"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content_blocks"));
// line 43
echo " ";
$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", false, false, false, 43)]));
// line 44
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SalvanaPferde2022/storefront/page/content/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
{% block page_content %}
{% 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']) %}
{% set teaserKey = page.cmsPage.sections.getKeys()[0] %}
{% set hasTeaser = page.cmsPage.sections.get(teaserKey) %}
{% set dummy = page.cmsPage.sections.remove(teaserKey) %}
{% else %}
{% set hasTeaser = 0 %}
{% endif %}
{% if hasTeaser %}
{% set section = hasTeaser %}
{% set sectionBgColor = section.backgroundColor %}
{% set sectionBgImg = section.backgroundMedia|sw_encode_media_url %}
{% set sectionBgImgMode = section.backgroundMediaMode %}
{% set sectionClasses = [section.cssClass, 'pos-' ~ section.position, 'cms-section-' ~ section.type] %}
{% if sectionBgImg %}
{% set sectionClasses = ['bg-image']|merge(sectionClasses) %}
{% endif %}
{% if sectionBgColor %}
{% set sectionClasses = ['bg-color']|merge(sectionClasses) %}
{% endif %}
<div class=\"cms-teaser\"
style=\"{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}\">
{% sw_include \"@Storefront/storefront/section/cms-section-\" ~ section.type ~ \".html.twig\" %}
</div>
{% endif %}
{% if controllerAction|lower != 'home' %}
<div class=\"breadcrumb cms-breadcrump container\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
{% block cms_breadcrumb %}
{% endblock %}
</div>
{% endif %}
<div class=\"cms-page\">
{% block page_content_blocks %}
{% sw_include \"@Storefront/storefront/page/content/detail.html.twig\" with {'cmsPage': page.cmsPage} %}
{% endblock %}
</div>
{% endblock %}
", "@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");
}
}