<?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;
/* @SchilderSysteme/storefront/page/content/index.html.twig */
class __TwigTemplate_f39ac0a0e82058be94429a8c45099e03a2fdc0a89bf648f965e5b7ec8d58d18e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'cms_breadcrumb' => [$this, 'block_cms_breadcrumb'],
'cms_category_headline' => [$this, 'block_cms_category_headline'],
'cms_category_description' => [$this, 'block_cms_category_description'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Tuerschild_2/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", "@SchilderSysteme/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", "@SchilderSysteme/storefront/page/content/index.html.twig"));
$this->parent = $this->loadTemplate("@Tuerschild_2/storefront/page/content/index.html.twig", "@SchilderSysteme/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 5
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 6
echo " ";
if ((1 === twig_compare(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, 6), "navigation", [], "any", false, false, false, 6), "active", [], "any", false, false, false, 6), "level", [], "any", false, false, false, 6), 1))) {
// line 7
echo " <div class=\"cms-section-default boxed\">
<div class=\"cms-block-container\">
<div class=\"col-12\">
<div class=\"breadcrumb cms-breadcrumb container\">
";
// line 11
$this->loadTemplate("@Tuerschild_2/storefront/layout/breadcrumb.html.twig", "@SchilderSysteme/storefront/page/content/index.html.twig", 11)->display(twig_to_array(["context" => // line 12
($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 13
($context["page"] ?? null), "header", [], "any", false, false, false, 13), "navigation", [], "any", false, false, false, 13), "active", [], "any", false, false, false, 13)]));
// line 15
echo " </div>
</div>
</div>
</div>
";
}
// line 20
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 23
public function block_cms_category_headline($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_category_headline"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cms_category_headline"));
// line 24
echo " ";
if ((1 === twig_compare(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, 24), "navigation", [], "any", false, false, false, 24), "active", [], "any", false, false, false, 24), "level", [], "any", false, false, false, 24), 1))) {
// line 25
echo " <div class=\"cms-section-default boxed\">
<div class=\"cms-block-container\">
<div class=\"col-12\">
<h1 class=\"category-headline
\">";
// line 29
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, 29), "navigation", [], "any", false, false, false, 29), "active", [], "any", false, false, false, 29), "translated", [], "any", false, false, false, 29), "name", [], "any", false, false, false, 29), "html", null, true);
echo "</h1>
</div>
</div>
</div>
";
}
// line 34
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 36
public function block_cms_category_description($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_category_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cms_category_description"));
// line 37
echo " ";
if ((1 === twig_compare(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, 37), "navigation", [], "any", false, false, false, 37), "active", [], "any", false, false, false, 37), "level", [], "any", false, false, false, 37), 1))) {
// line 38
echo " ";
$context["imgMediaId"] = 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, 38), "navigation", [], "any", false, false, false, 38), "active", [], "any", false, false, false, 38), "customFields", [], "any", false, false, false, 38), "custom_category_info_image", [], "any", false, false, false, 38);
// line 39
echo " ";
$context["iconMediaId"] = 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, 39), "navigation", [], "any", false, false, false, 39), "active", [], "any", false, false, false, 39), "customFields", [], "any", false, false, false, 39), "custom_category_info_icon", [], "any", false, false, false, 39);
// line 40
echo "
";
// line 41
$context["description"] = 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, 41), "navigation", [], "any", false, false, false, 41), "active", [], "any", false, false, false, 41), "customFields", [], "any", false, false, false, 41), "custom_category_info_description", [], "any", false, false, false, 41);
// line 42
echo " ";
$context["attribute_1"] = 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, 42), "navigation", [], "any", false, false, false, 42), "active", [], "any", false, false, false, 42), "customFields", [], "any", false, false, false, 42), "custom_category_info_attribute_1", [], "any", false, false, false, 42);
// line 43
echo " ";
$context["attribute_2"] = 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, 43), "navigation", [], "any", false, false, false, 43), "active", [], "any", false, false, false, 43), "customFields", [], "any", false, false, false, 43), "custom_category_info_attribute_2", [], "any", false, false, false, 43);
// line 44
echo " ";
$context["categoryColor"] = 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, 44), "navigation", [], "any", false, false, false, 44), "active", [], "any", false, false, false, 44), "customFields", [], "any", false, false, false, 44), "custom_category_info_color", [], "any", false, false, false, 44);
// line 45
echo " ";
$context["isBoxHidden"] = 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, 45), "navigation", [], "any", false, false, false, 45), "active", [], "any", false, false, false, 45), "customFields", [], "any", false, false, false, 45), "custom_category_info_box_hide", [], "any", false, false, false, 45);
// line 46
echo "
";
// line 50
if (($context["imgMediaId"] ?? null)) {
// line 51
echo " ";
$context["media"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\MediaExtension']->searchMedia([0 => ($context["imgMediaId"] ?? null)], sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "context", [], "any", false, false, false, 51));
// line 52
echo " ";
$context["img"] = sw_get_attribute($this->env, $this->source, ($context["media"] ?? null), "get", [0 => ($context["imgMediaId"] ?? null)], "method", false, false, false, 52);
// line 53
echo "
";
// line 54
if (($context["iconMediaId"] ?? null)) {
// line 55
echo " ";
$context["mediaIcon"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\MediaExtension']->searchMedia([0 => ($context["iconMediaId"] ?? null)], sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "context", [], "any", false, false, false, 55));
// line 56
echo " ";
$context["icon"] = twig_first($this->env, sw_get_attribute($this->env, $this->source, ($context["mediaIcon"] ?? null), "elements", [], "any", false, false, false, 56));
// line 57
echo " ";
}
// line 58
echo " <div class=\"category-description-container cms-block-text-on-image col-12\">
<div class=\"cms-block bg-image\">
<div class=\"d-flex\">
<div class=\"category-square-name-wrapper ";
// line 61
if (($context["isBoxHidden"] ?? null)) {
echo " d-none ";
}
echo "\"
style=\"background-color: ";
// line 62
((($context["categoryColor"] ?? null)) ? (print (sw_escape_filter($this->env, ($context["categoryColor"] ?? null), "html", null, true))) : (print ("#000000")));
echo "\">
<span class=\"category-name\">";
// line 63
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, 63), "navigation", [], "any", false, false, false, 63), "active", [], "any", false, false, false, 63), "translated", [], "any", false, false, false, 63), "name", [], "any", false, false, false, 63), "html", null, true);
echo "</span>
</div>
<img src=\"";
// line 65
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["img"] ?? null), "url", [], "any", false, false, false, 65), "html", null, true);
echo "\" class=\"cms-block-background media-mode--cover\">
</div>
<div class=\"cms-block-container d-none\">
<div class=\"category-description-wrapper d-flex flex-sm-column-reverse col-12 p-0\">
<div class=\"d-flex flex-column flex-sm-row justify-content-between\">
<span class=\"d-flex flex-column-reverse category-description\">";
// line 70
echo twig_striptags(($context["description"] ?? null));
echo "</span>
<div class=\"d-flex\">
";
// line 72
if (($context["iconMediaId"] ?? null)) {
echo " <img class=\"category-icon\"
src=\"";
// line 73
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["icon"] ?? null), "url", [], "any", false, false, false, 73), "html", null, true);
echo "\">";
}
// line 74
echo " <div class=\"category-description-attributes d-flex flex-column justify-content-end\">
<span class=\"attr attr-1\">";
// line 75
echo sw_escape_filter($this->env, ($context["attribute_1"] ?? null), "html", null, true);
echo "</span>
<span class=\"attr attr-2\">";
// line 76
echo sw_escape_filter($this->env, ($context["attribute_2"] ?? null), "html", null, true);
echo "</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
}
// line 85
echo " ";
}
// line 86
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SchilderSysteme/storefront/page/content/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 264 => 86, 261 => 85, 249 => 76, 245 => 75, 242 => 74, 238 => 73, 234 => 72, 229 => 70, 221 => 65, 216 => 63, 212 => 62, 206 => 61, 201 => 58, 198 => 57, 195 => 56, 192 => 55, 190 => 54, 187 => 53, 184 => 52, 181 => 51, 179 => 50, 173 => 46, 170 => 45, 167 => 44, 164 => 43, 161 => 42, 159 => 41, 156 => 40, 153 => 39, 150 => 38, 147 => 37, 137 => 36, 127 => 34, 119 => 29, 113 => 25, 110 => 24, 100 => 23, 90 => 20, 83 => 15, 81 => 13, 80 => 12, 79 => 11, 73 => 7, 70 => 6, 60 => 5, 37 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
{% block cms_breadcrumb %}
{% if page.header.navigation.active.level > 1 %}
<div class=\"cms-section-default boxed\">
<div class=\"cms-block-container\">
<div class=\"col-12\">
<div class=\"breadcrumb cms-breadcrumb container\">
{% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
context: context,
category: page.header.navigation.active
} only %}
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block cms_category_headline %}
{% if page.header.navigation.active.level > 1 %}
<div class=\"cms-section-default boxed\">
<div class=\"cms-block-container\">
<div class=\"col-12\">
<h1 class=\"category-headline
\">{{ page.header.navigation.active.translated.name }}</h1>
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block cms_category_description %}
{% if page.header.navigation.active.level > 1 %}
{% set imgMediaId = page.header.navigation.active.customFields.custom_category_info_image %}
{% set iconMediaId = page.header.navigation.active.customFields.custom_category_info_icon %}
{% set description = page.header.navigation.active.customFields.custom_category_info_description %}
{% set attribute_1 = page.header.navigation.active.customFields.custom_category_info_attribute_1 %}
{% set attribute_2 = page.header.navigation.active.customFields.custom_category_info_attribute_2 %}
{% set categoryColor = page.header.navigation.active.customFields.custom_category_info_color %}
{% set isBoxHidden = page.header.navigation.active.customFields.custom_category_info_box_hide %}
{% if imgMediaId %}
{% set media = searchMedia([imgMediaId], context.context) %}
{% set img = media.get(imgMediaId) %}
{% if iconMediaId %}
{% set mediaIcon = searchMedia([iconMediaId], context.context) %}
{% set icon = mediaIcon.elements|first %}
{% endif %}
<div class=\"category-description-container cms-block-text-on-image col-12\">
<div class=\"cms-block bg-image\">
<div class=\"d-flex\">
<div class=\"category-square-name-wrapper {% if isBoxHidden %} d-none {% endif %}\"
style=\"background-color: {{ categoryColor ? categoryColor : '#000000' }}\">
<span class=\"category-name\">{{ page.header.navigation.active.translated.name }}</span>
</div>
<img src=\"{{ img.url }}\" class=\"cms-block-background media-mode--cover\">
</div>
<div class=\"cms-block-container d-none\">
<div class=\"category-description-wrapper d-flex flex-sm-column-reverse col-12 p-0\">
<div class=\"d-flex flex-column flex-sm-row justify-content-between\">
<span class=\"d-flex flex-column-reverse category-description\">{{ description|striptags|raw }}</span>
<div class=\"d-flex\">
{% if iconMediaId %} <img class=\"category-icon\"
src=\"{{ icon.url }}\">{% endif %}
<div class=\"category-description-attributes d-flex flex-column justify-content-end\">
<span class=\"attr attr-1\">{{ attribute_1 }}</span>
<span class=\"attr attr-2\">{{ attribute_2 }}</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endblock %}", "@SchilderSysteme/storefront/page/content/index.html.twig", "/data/www/stage.tuerschildshop/custom/plugins/SchilderSysteme/src/Resources/views/storefront/page/content/index.html.twig");
}
}