<?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_670f8f10e24a7a2c4f1e04826bd57be019f8dc09881ea2f1107f56adf62ca4a6 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_layout_breadcrumb_list_item($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", "layout_breadcrumb_list_item"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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"] = (("onlyShop" == ($context["productShowInBreadcrumbMode"] ?? null)) || ("shopAndJsonLd" == ($context["productShowInBreadcrumbMode"] ?? null)));
// line 9
echo "
";
// line 11
echo " ";
// line 12
echo " ";
$this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb', $context, $blocks);
// line 17
echo "
";
// line 18
if (($context["productShowInBreadcrumb"] ?? null)) {
// line 19
echo " ";
$this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__modify_default', $context, $blocks);
// line 25
echo " ";
} else {
// line 26
echo " ";
// line 27
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/default.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 27)->display(twig_array_merge($context, ["ignoreActive" => false]));
// line 30
echo " ";
}
// line 31
echo "
";
// line 33
echo " ";
// line 34
echo " ";
$this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_dreisc_seo__layout_breadcrumb_list_item__add_home_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", "dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
// line 13
echo " ";
if ((($context["homeShowInBreadcrumb"] ?? null) && (twig_first($this->env, twig_get_array_keys_filter(($context["breadcrumb"] ?? null))) == ($context["key"] ?? null)))) {
// line 14
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/home.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 14)->display(twig_to_array([]));
// line 15
echo " ";
}
// line 16
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
public function block_dreisc_seo__layout_breadcrumb_list_item__modify_default($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", "dreisc_seo__layout_breadcrumb_list_item__modify_default"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__modify_default"));
// line 20
echo " ";
// line 21
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/default.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 21)->display(twig_array_merge($context, ["ignoreActive" => true]));
// line 24
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 34
public function block_dreisc_seo__layout_breadcrumb_list_item__add_product_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", "dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
// line 35
echo " ";
if ((($context["productShowInBreadcrumb"] ?? null) && (twig_last($this->env, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "categoryTree", [], "any", false, false, false, 35)) == ($context["key"] ?? null)))) {
// line 36
echo " ";
$this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/product.html.twig", "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig", 36)->display(twig_to_array(["product" => // line 37
($context["product"] ?? null)]));
// line 39
echo " ";
}
// line 40
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 202 => 40, 199 => 39, 197 => 37, 195 => 36, 192 => 35, 182 => 34, 172 => 24, 169 => 21, 167 => 20, 157 => 19, 147 => 16, 144 => 15, 141 => 14, 138 => 13, 128 => 12, 117 => 34, 115 => 33, 112 => 31, 109 => 30, 106 => 27, 104 => 26, 101 => 25, 98 => 19, 96 => 18, 93 => 17, 90 => 12, 88 => 11, 85 => 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 = '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; product.categoryTree|last = last id of the breadcrumb array #}
{% block dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb %}
{% if productShowInBreadcrumb and product.categoryTree|last == 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", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/DreiscSeoPro/src/Resources/views/storefront/layout/breadcrumb.html.twig");
}
}