<?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;
/* @DreiscSeoPro/storefront/layout/breadcrumb.html.twig */
class __TwigTemplate_2d253b44b86bbff47cc20901f1ab9137 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_breadcrumb_list_item' => [$this, 'block_layout_breadcrumb_list_item'],
'dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb' => [$this, 'block_dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb'],
'dreisc_seo__layout_breadcrumb_list_item__modify_default' => [$this, 'block_dreisc_seo__layout_breadcrumb_list_item__modify_default'],
'dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb' => [$this, 'block_dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/layout/breadcrumb.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/layout/breadcrumb.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_layout_breadcrumb_list_item($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list_item"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list_item"));
// line 4
echo " ";
$context["homeShowInBreadcrumbMode"] = 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["dreiscSeoCustomSettings"] ?? null), "richSnippets", [], "any", false, false, false, 4), "breadcrumb", [], "any", false, false, false, 4), "home", [], "any", false, false, false, 4), "showInBreadcrumbMode", [], "any", false, false, false, 4);
// line 5
echo " ";
$context["homeShowInBreadcrumb"] = (("onlyShop" == ($context["homeShowInBreadcrumbMode"] ?? null)) || ("shopAndJsonLd" == ($context["homeShowInBreadcrumbMode"] ?? null)));
// line 6
echo "
";
// line 7
$context["productShowInBreadcrumbMode"] = 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["dreiscSeoCustomSettings"] ?? null), "richSnippets", [], "any", false, false, false, 7), "breadcrumb", [], "any", false, false, false, 7), "product", [], "any", false, false, false, 7), "showInBreadcrumbMode", [], "any", false, false, false, 7);
// line 8
echo " ";
$context["productShowInBreadcrumb"] = (($context["product"] ?? null) && (("onlyShop" == // line 9
($context["productShowInBreadcrumbMode"] ?? null)) || ("shopAndJsonLd" == ($context["productShowInBreadcrumbMode"] ?? null))));
// line 11
echo "
";
// line 13
echo " ";
// line 14
echo " ";
$this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb', $context, $blocks);
// line 19
echo "
";
// line 20
if (($context["productShowInBreadcrumb"] ?? null)) {
// line 21
echo " ";
$this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__modify_default', $context, $blocks);
// line 27
echo " ";
} else {
// line 28
echo " ";
// line 29
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/default.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 29)->display(twig_array_merge($context, ["ignoreActive" => false]));
// line 32
echo " ";
}
// line 33
echo "
";
// line 35
echo " ";
// line 36
echo " ";
$this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb', $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 14
public function block_dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
// line 15
echo " ";
if ((($context["homeShowInBreadcrumb"] ?? null) && (twig_first($this->env, twig_get_array_keys_filter(($context["breadcrumb"] ?? null))) == ($context["key"] ?? null)))) {
// line 16
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/home.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 16)->display(twig_to_array([]));
// line 17
echo " ";
}
// line 18
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 21
public function block_dreisc_seo__layout_breadcrumb_list_item__modify_default($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__modify_default"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__modify_default"));
// line 22
echo " ";
// line 23
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/default.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 23)->display(twig_array_merge($context, ["ignoreActive" => true]));
// line 26
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 36
public function block_dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
// line 37
echo " ";
if ((($context["productShowInBreadcrumb"] ?? null) && (sw_get_attribute($this->env, $this->source, twig_last($this->env, ($context["breadcrumbCategories"] ?? null)), "id", [], "any", false, false, false, 37) == ($context["key"] ?? null)))) {
// line 38
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/product.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 38)->display(twig_to_array(["product" => // line 39
($context["product"] ?? null)]));
// line 41
echo " ";
}
// line 42
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 203 => 42, 200 => 41, 198 => 39, 196 => 38, 193 => 37, 183 => 36, 173 => 26, 170 => 23, 168 => 22, 158 => 21, 148 => 18, 145 => 17, 142 => 16, 139 => 15, 129 => 14, 118 => 36, 116 => 35, 113 => 33, 110 => 32, 107 => 29, 105 => 28, 102 => 27, 99 => 21, 97 => 20, 94 => 19, 91 => 14, 89 => 13, 86 => 11, 84 => 9, 82 => 8, 80 => 7, 77 => 6, 74 => 5, 71 => 4, 61 => 3, 38 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
{% block layout_breadcrumb_list_item %}
{% set homeShowInBreadcrumbMode = dreiscSeoCustomSettings.richSnippets.breadcrumb.home.showInBreadcrumbMode %}
{% set homeShowInBreadcrumb = 'onlyShop' == homeShowInBreadcrumbMode or 'shopAndJsonLd' == homeShowInBreadcrumbMode %}
{% set productShowInBreadcrumbMode = dreiscSeoCustomSettings.richSnippets.breadcrumb.product.showInBreadcrumbMode %}
{% set productShowInBreadcrumb = product and (
'onlyShop' == productShowInBreadcrumbMode or 'shopAndJsonLd' == productShowInBreadcrumbMode)
%}
{# Make sure, that we are before the first item #}
{# EXPLAIN: key = current id of the breadcrumb array; breadcrumb|keys|first = id of the first breadcrumb item #}
{% block dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb %}
{% if homeShowInBreadcrumb and breadcrumb|keys|first == key %}
{% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/home.html.twig' with { } only %}
{% endif %}
{% endblock %}
{% if productShowInBreadcrumb %}
{% block dreisc_seo__layout_breadcrumb_list_item__modify_default %}
{# We make sure that we do not set the is-active class because the product name is issued as a bread crumb. #}
{% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/default.html.twig' with {
ignoreActive: true
} %}
{% endblock %}
{% else %}
{# Otherwise: Call the parent as fallback #}
{% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/default.html.twig' with {
ignoreActive: false
} %}
{% endif %}
{# Check, if we reached the last breadcrumb item #}
{# EXPLAIN: key = current id of the breadcrumb array; breadcrumbCategories|last = last id of the breadcrumb array #}
{% block dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb %}
{% if productShowInBreadcrumb and breadcrumbCategories|last.id == key %}
{% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/product.html.twig' with {
product: product
} only %}
{% endif %}
{% endblock %}
{% endblock %}
", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", "/var/www/html/htdocs/custom/plugins/DreiscSeoPro/src/Resources/views/storefront/layout/breadcrumb.html.twig");
}
}