<?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;
/* @BaumarktTheme/storefront/page/content/index.html.twig */
class __TwigTemplate_8213de1ea81e8354e51ed4ca38d0dcf8086936377727b4f235fdc4c7a988dcb5 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'],
'page_content_cover_image' => [$this, 'block_page_content_cover_image'],
'cms_breadcrumb' => [$this, 'block_cms_breadcrumb'],
'page_content_subcategories_wrapper' => [$this, 'block_page_content_subcategories_wrapper'],
'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", "@BaumarktTheme/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", "@BaumarktTheme/storefront/page/content/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig", "@BaumarktTheme/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 4
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 5
echo "
";
// line 6
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 6), "type", [], "any", false, false, false, 6) == "product_list")) {
// line 7
echo " ";
$context["categoryCustomFields"] = 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), "header", [], "any", false, false, false, 7), "navigation", [], "any", false, false, false, 7), "active", [], "any", false, false, false, 7), "translated", [], "any", false, false, false, 7), "customFields", [], "any", false, false, false, 7);
// line 8
echo "
";
// line 9
if (sw_get_attribute($this->env, $this->source, ($context["categoryCustomFields"] ?? null), "category_cover_img", [], "any", false, false, false, 9)) {
// line 10
echo " ";
$context["coverImgId"] = sw_get_attribute($this->env, $this->source, ($context["categoryCustomFields"] ?? null), "category_cover_img", [], "any", false, false, false, 10);
// line 11
echo " ";
$context["coverImgMediaCollection"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\MediaExtension']->searchMedia([0 => ($context["coverImgId"] ?? null)], sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "context", [], "any", false, false, false, 11));
// line 12
echo " ";
$context["coverImgMedia"] = sw_get_attribute($this->env, $this->source, ($context["coverImgMediaCollection"] ?? null), "get", [0 => ($context["coverImgId"] ?? null)], "method", false, false, false, 12);
// line 13
echo " ";
}
// line 14
echo "
";
// line 15
$this->displayBlock('page_content_cover_image', $context, $blocks);
// line 27
echo "
";
// line 28
$context["linkableSections"] = [];
// line 29
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 29), "sections", [], "any", false, false, false, 29));
foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
// line 30
echo " ";
if (sw_get_attribute($this->env, $this->source, $context["section"], "name", [], "any", false, false, false, 30)) {
// line 31
echo " ";
$context["linkableSections"] = twig_array_merge(($context["linkableSections"] ?? null), [0 => $context["section"]]);
// line 32
echo " ";
}
// line 33
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo "
";
// line 35
if ((twig_length_filter($this->env, ($context["linkableSections"] ?? null)) > 0)) {
// line 36
echo " <div class=\"listing-page-navigation\" data-scroll-section>
<ul>
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["linkableSections"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
// line 39
echo " ";
$context["sectionNameSnippet"] = twig_replace_filter(twig_striptags(sw_get_attribute($this->env, $this->source, $context["section"], "name", [], "any", false, false, false, 39)), [" " => ""]);
// line 40
echo " ";
$context["sectionName"] = $this->extensions['GlobusSW6\Service\Twig\SwSanitizeTwigFilterDecorator']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["sectionNameSnippet"] ?? null)));
// line 41
echo " ";
if ((($context["sectionNameSnippet"] ?? null) == ($context["sectionName"] ?? null))) {
// line 42
echo " ";
$context["sectionName"] = sw_get_attribute($this->env, $this->source, $context["section"], "name", [], "any", false, false, false, 42);
// line 43
echo " ";
}
// line 44
echo " <li>
<a href=\"#\" data-section-id=\"globus-listing-section-";
// line 45
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["section"], "id", [], "any", false, false, false, 45), "html", null, true);
echo "\">";
echo sw_escape_filter($this->env, ($context["sectionName"] ?? null), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
echo " </ul>
</div>
";
}
// line 51
echo " ";
}
// line 52
echo "
";
// line 53
$this->displayBlock('cms_breadcrumb', $context, $blocks);
// line 66
echo "
";
// line 67
$this->displayBlock('page_content_subcategories_wrapper', $context, $blocks);
// line 84
echo "
<div class=\"cms-page\">
";
// line 86
$this->displayBlock('page_content_blocks', $context, $blocks);
// line 89
echo " </div>
";
// line 91
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 91), "type", [], "any", false, false, false, 91) == "product_list")) {
// line 92
echo " ";
if (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), "header", [], "any", false, false, false, 92), "navigation", [], "any", false, false, false, 92), "active", [], "any", false, false, false, 92), "translated", [], "any", false, false, false, 92), "customFields", [], "any", false, false, false, 92), "category_description_seo", [], "any", false, false, false, 92)) {
// line 93
echo " <div class=\"cms-seo-text-wrapper\">
<div class=\"cms-seo-container container\">
";
// line 95
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaInformation", [], "any", false, false, false, 95), "metaTitle", [], "any", false, false, false, 95)) {
// line 96
echo " <div class=\"h3 cms-seo-title\">
";
// line 97
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaInformation", [], "any", false, false, false, 97), "metaTitle", [], "any", false, false, false, 97), "html", null, true);
echo "
</div>
";
}
// line 100
echo " ";
if (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), "header", [], "any", false, false, false, 100), "navigation", [], "any", false, false, false, 100), "active", [], "any", false, false, false, 100), "translated", [], "any", false, false, false, 100), "customFields", [], "any", false, false, false, 100), "category_subtitle_seo", [], "any", false, false, false, 100)) {
// line 101
echo " <div class=\"cms-seo-subtitle\">
";
// line 102
echo sw_escape_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, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 102), "navigation", [], "any", false, false, false, 102), "active", [], "any", false, false, false, 102), "translated", [], "any", false, false, false, 102), "customFields", [], "any", false, false, false, 102), "category_subtitle_seo", [], "any", false, false, false, 102), "html", null, true);
echo "
</div>
";
}
// line 105
echo " <div class=\"cms-seo-description\">
<p>
";
// line 107
echo 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), "header", [], "any", false, false, false, 107), "navigation", [], "any", false, false, false, 107), "active", [], "any", false, false, false, 107), "translated", [], "any", false, false, false, 107), "customFields", [], "any", false, false, false, 107), "category_description_seo", [], "any", false, false, false, 107);
echo "
</p>
</div>
<div class=\"cms-seo-btn-wrapper d-flex justify-content-center\">
<a href=\"";
// line 112
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.listingSeoBtnUrl"), "html", null, true);
echo "
\" class=\"cms-seo-btn btn btn-primary\">
";
// line 114
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.listingSeoBtn"), "html", null, true);
echo "
</a>
</div>
</div>
</div>
";
}
// line 120
echo " ";
}
// line 121
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_page_content_cover_image($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_cover_image"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content_cover_image"));
// line 16
echo "
";
// line 17
if (($context["coverImgMedia"] ?? null)) {
// line 18
echo " <div class=\"category-cover-img\" style=\"background-image: url(";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter']->encodeUrl(sw_get_attribute($this->env, $this->source, ($context["coverImgMedia"] ?? null), "url", [], "any", false, false, false, 18)), "html", null, true);
echo ");\">
<div class=\"category-cover-img-layer\"></div>
<div class=\"category-cover-img-name\">
<h1>";
// line 21
echo sw_escape_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, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 21), "navigation", [], "any", false, false, false, 21), "active", [], "any", false, false, false, 21), "translated", [], "any", false, false, false, 21), "name", [], "any", false, false, false, 21), "html", null, true);
echo "</h1>
</div>
</div>
";
}
// line 25
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 53
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 54
echo "
";
// line 55
if ((($context["controllerAction"] ?? null) == "home")) {
// line 57
echo " ";
} else {
// line 58
echo " <div class=\"breadcrumb cms-breadcrumb container\" data-content-breadcrumb=\"true\">
";
// line 59
$this->loadTemplate("@BaumarktTheme/storefront/layout/breadcrumb.html.twig", "@BaumarktTheme/storefront/page/content/index.html.twig", 59)->display(twig_to_array(["context" => // line 60
($context["context"] ?? null), "category" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 61
($context["page"] ?? null), "header", [], "any", false, false, false, 61), "navigation", [], "any", false, false, false, 61), "active", [], "any", false, false, false, 61)]));
// line 63
echo " </div>
";
}
// line 65
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 67
public function block_page_content_subcategories_wrapper($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_subcategories_wrapper"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content_subcategories_wrapper"));
// line 68
echo " ";
$context["treeItems"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 68), "navigation", [], "any", false, false, false, 68), "tree", [], "any", false, false, false, 68);
// line 69
echo " ";
$context["currentLevel"] = 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), "header", [], "any", false, false, false, 69), "navigation", [], "any", false, false, false, 69), "active", [], "any", false, false, false, 69), "level", [], "any", false, false, false, 69);
// line 70
echo " ";
$context["currentChildren"] = 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), "header", [], "any", false, false, false, 70), "navigation", [], "any", false, false, false, 70), "active", [], "any", false, false, false, 70), "childCount", [], "any", false, false, false, 70);
// line 71
echo " ";
$context["activeId"] = 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), "header", [], "any", false, false, false, 71), "navigation", [], "any", false, false, false, 71), "active", [], "any", false, false, false, 71), "id", [], "any", false, false, false, 71);
// line 72
echo "
";
// line 73
if ((($context["currentChildren"] ?? null) > 0)) {
// line 74
echo "
<div class=\"subcategories-navigation-wrapper\">
<div class=\"subcategories-navigation container d-flex justify-content-between\">
";
// line 78
$this->loadTemplate("@BaumarktTheme/storefront/page/content/subnavigation.html.twig", "@BaumarktTheme/storefront/page/content/index.html.twig", 78)->display(twig_to_array(["activeId" => ($context["activeId"] ?? null), "treeItems" => ($context["treeItems"] ?? null)]));
// line 79
echo " </div>
</div>
";
}
// line 83
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 86
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 87
echo " ";
$this->loadTemplate("@BaumarktTheme/storefront/page/content/detail.html.twig", "@BaumarktTheme/storefront/page/content/index.html.twig", 87)->display(twig_array_merge($context, ["cmsPage" => sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 87)]));
// line 88
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@BaumarktTheme/storefront/page/content/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 412 => 88, 409 => 87, 399 => 86, 389 => 83, 383 => 79, 381 => 78, 375 => 74, 373 => 73, 370 => 72, 367 => 71, 364 => 70, 361 => 69, 358 => 68, 348 => 67, 338 => 65, 334 => 63, 332 => 61, 331 => 60, 330 => 59, 327 => 58, 324 => 57, 322 => 55, 319 => 54, 309 => 53, 298 => 25, 291 => 21, 284 => 18, 282 => 17, 279 => 16, 269 => 15, 258 => 121, 255 => 120, 246 => 114, 241 => 112, 233 => 107, 229 => 105, 223 => 102, 220 => 101, 217 => 100, 211 => 97, 208 => 96, 206 => 95, 202 => 93, 199 => 92, 197 => 91, 193 => 89, 191 => 86, 187 => 84, 185 => 67, 182 => 66, 180 => 53, 177 => 52, 174 => 51, 169 => 48, 158 => 45, 155 => 44, 152 => 43, 149 => 42, 146 => 41, 143 => 40, 140 => 39, 136 => 38, 132 => 36, 130 => 35, 127 => 34, 121 => 33, 118 => 32, 115 => 31, 112 => 30, 107 => 29, 105 => 28, 102 => 27, 100 => 15, 97 => 14, 94 => 13, 91 => 12, 88 => 11, 85 => 10, 83 => 9, 80 => 8, 77 => 7, 75 => 6, 72 => 5, 62 => 4, 39 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
{% block page_content %}
{% if page.cmsPage.type == 'product_list' %}
{% set categoryCustomFields = page.header.navigation.active.translated.customFields %}
{% if categoryCustomFields.category_cover_img %}
{% set coverImgId = categoryCustomFields.category_cover_img %}
{% set coverImgMediaCollection = searchMedia([coverImgId], context.context) %}
{% set coverImgMedia = coverImgMediaCollection.get(coverImgId) %}
{% endif %}
{% block page_content_cover_image %}
{% if coverImgMedia %}
<div class=\"category-cover-img\" style=\"background-image: url({{ coverImgMedia.url|sw_encode_url }});\">
<div class=\"category-cover-img-layer\"></div>
<div class=\"category-cover-img-name\">
<h1>{{ page.header.navigation.active.translated.name }}</h1>
</div>
</div>
{% endif %}
{% endblock %}
{% set linkableSections = [] %}
{% for section in page.cmsPage.sections %}
{% if section.name %}
{% set linkableSections = linkableSections|merge([section]) %}
{% endif %}
{% endfor %}
{% if linkableSections|length > 0 %}
<div class=\"listing-page-navigation\" data-scroll-section>
<ul>
{% for section in linkableSections %}
{% set sectionNameSnippet = section.name|striptags|replace({' ': ''}) %}
{% set sectionName = sectionNameSnippet|trans|sw_sanitize %}
{% if sectionNameSnippet == sectionName %}
{% set sectionName = section.name %}
{% endif %}
<li>
<a href=\"#\" data-section-id=\"globus-listing-section-{{ section.id }}\">{{ sectionName }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endif %}
{% block cms_breadcrumb %}
{% if controllerAction == 'home' %}
{# removes breadcrumb navigation on homepage to prevent unneccesary whitespace #}
{% else %}
<div class=\"breadcrumb cms-breadcrumb container\" data-content-breadcrumb=\"true\">
{% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
context: context,
category: page.header.navigation.active
} only %}
</div>
{% endif %}
{% endblock %}
{% block page_content_subcategories_wrapper %}
{% set treeItems = page.header.navigation.tree %}
{% set currentLevel = page.header.navigation.active.level %}
{% set currentChildren = page.header.navigation.active.childCount %}
{% set activeId = page.header.navigation.active.id %}
{% if currentChildren > 0 %}
<div class=\"subcategories-navigation-wrapper\">
<div class=\"subcategories-navigation container d-flex justify-content-between\">
{% sw_include '@Storefront/storefront/page/content/subnavigation.html.twig' with { activeId: activeId, treeItems: treeItems} only %}
</div>
</div>
{% endif %}
{% endblock %}
<div class=\"cms-page\">
{% block page_content_blocks %}
{% sw_include \"@Storefront/storefront/page/content/detail.html.twig\" with {'cmsPage': page.cmsPage} %}
{% endblock %}
</div>
{% if page.cmsPage.type == 'product_list' %}
{% if page.header.navigation.active.translated.customFields.category_description_seo %}
<div class=\"cms-seo-text-wrapper\">
<div class=\"cms-seo-container container\">
{% if page.metaInformation.metaTitle %}
<div class=\"h3 cms-seo-title\">
{{ page.metaInformation.metaTitle }}
</div>
{% endif %}
{% if page.header.navigation.active.translated.customFields.category_subtitle_seo %}
<div class=\"cms-seo-subtitle\">
{{ page.header.navigation.active.translated.customFields.category_subtitle_seo }}
</div>
{% endif %}
<div class=\"cms-seo-description\">
<p>
{{ page.header.navigation.active.translated.customFields.category_description_seo|raw }}
</p>
</div>
<div class=\"cms-seo-btn-wrapper d-flex justify-content-center\">
<a href=\"{{ \"listing.listingSeoBtnUrl\"|trans }}
\" class=\"cms-seo-btn btn btn-primary\">
{{ \"listing.listingSeoBtn\"|trans }}
</a>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endblock %}
", "@BaumarktTheme/storefront/page/content/index.html.twig", "/srv/users/globus-int/apps/globus-int/releases/81/custom/static-plugins/BaumarktTheme/src/Resources/views/storefront/page/content/index.html.twig");
}
}