var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/6f/6f6515430439f1884a6a4d1c7f15e341b625c03cee3a3f421e10a068dc4b8d4d.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @DreiscSeoPro/storefront/layout/breadcrumb.html.twig */
  16. class __TwigTemplate_670f8f10e24a7a2c4f1e04826bd57be019f8dc09881ea2f1107f56adf62ca4a6 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'layout_breadcrumb_list_item' => [$this'block_layout_breadcrumb_list_item'],
  26.             'dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb' => [$this'block_dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb'],
  27.             'dreisc_seo__layout_breadcrumb_list_item__modify_default' => [$this'block_dreisc_seo__layout_breadcrumb_list_item__modify_default'],
  28.             'dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb' => [$this'block_dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 2
  34.         return "@Storefront/storefront/layout/breadcrumb.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"));
  43.         $this->parent $this->loadTemplate("@Storefront/storefront/layout/breadcrumb.html.twig""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"2);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_layout_breadcrumb_list_item($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_list_item"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_list_item"));
  58.         // line 4
  59.         echo "    ";
  60.         $context["homeShowInBreadcrumbMode"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["dreiscSeoCustomSettings"] ?? null), "richSnippets", [], "any"falsefalsefalse4), "breadcrumb", [], "any"falsefalsefalse4), "home", [], "any"falsefalsefalse4), "showInBreadcrumbMode", [], "any"falsefalsefalse4);
  61.         // line 5
  62.         echo "    ";
  63.         $context["homeShowInBreadcrumb"] = (("onlyShop" == ($context["homeShowInBreadcrumbMode"] ?? null)) || ("shopAndJsonLd" == ($context["homeShowInBreadcrumbMode"] ?? null)));
  64.         // line 6
  65.         echo "
  66.     ";
  67.         // line 7
  68.         $context["productShowInBreadcrumbMode"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["dreiscSeoCustomSettings"] ?? null), "richSnippets", [], "any"falsefalsefalse7), "breadcrumb", [], "any"falsefalsefalse7), "product", [], "any"falsefalsefalse7), "showInBreadcrumbMode", [], "any"falsefalsefalse7);
  69.         // line 8
  70.         echo "    ";
  71.         $context["productShowInBreadcrumb"] = (("onlyShop" == ($context["productShowInBreadcrumbMode"] ?? null)) || ("shopAndJsonLd" == ($context["productShowInBreadcrumbMode"] ?? null)));
  72.         // line 9
  73.         echo "
  74.     ";
  75.         // line 11
  76.         echo "    ";
  77.         // line 12
  78.         echo "    ";
  79.         $this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb'$context$blocks);
  80.         // line 17
  81.         echo "
  82.     ";
  83.         // line 18
  84.         if (($context["productShowInBreadcrumb"] ?? null)) {
  85.             // line 19
  86.             echo "        ";
  87.             $this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__modify_default'$context$blocks);
  88.             // line 25
  89.             echo "    ";
  90.         } else {
  91.             // line 26
  92.             echo "        ";
  93.             // line 27
  94.             echo "        ";
  95.             $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]));
  96.             // line 30
  97.             echo "    ";
  98.         }
  99.         // line 31
  100.         echo "
  101.     ";
  102.         // line 33
  103.         echo "    ";
  104.         // line 34
  105.         echo "    ";
  106.         $this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb'$context$blocks);
  107.         
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  109.         
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  111.     }
  112.     // line 12
  113.     public function block_dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb($context, array $blocks = [])
  114.     {
  115.         $macros $this->macros;
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
  120.         // line 13
  121.         echo "        ";
  122.         if ((($context["homeShowInBreadcrumb"] ?? null) && (twig_first($this->envtwig_get_array_keys_filter(($context["breadcrumb"] ?? null))) == ($context["key"] ?? null)))) {
  123.             // line 14
  124.             echo "            ";
  125.             $this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/home.html.twig""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"14)->display(twig_to_array([]));
  126.             // line 15
  127.             echo "        ";
  128.         }
  129.         // line 16
  130.         echo "    ";
  131.         
  132.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  133.         
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  135.     }
  136.     // line 19
  137.     public function block_dreisc_seo__layout_breadcrumb_list_item__modify_default($context, array $blocks = [])
  138.     {
  139.         $macros $this->macros;
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__modify_default"));
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__modify_default"));
  144.         // line 20
  145.         echo "            ";
  146.         // line 21
  147.         echo "            ";
  148.         $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]));
  149.         // line 24
  150.         echo "        ";
  151.         
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  153.         
  154.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  155.     }
  156.     // line 34
  157.     public function block_dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb($context, array $blocks = [])
  158.     {
  159.         $macros $this->macros;
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
  164.         // line 35
  165.         echo "        ";
  166.         if ((($context["productShowInBreadcrumb"] ?? null) && (twig_last($this->envsw_get_attribute($this->env$this->source, ($context["product"] ?? null), "categoryTree", [], "any"falsefalsefalse35)) == ($context["key"] ?? null)))) {
  167.             // line 36
  168.             echo "            ";
  169.             $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
  170. ($context["product"] ?? null)]));
  171.             // line 39
  172.             echo "        ";
  173.         }
  174.         // line 40
  175.         echo "    ";
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     public function getTemplateName()
  182.     {
  183.         return "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig";
  184.     }
  185.     public function isTraitable()
  186.     {
  187.         return false;
  188.     }
  189.     public function getDebugInfo()
  190.     {
  191.         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,);
  192.     }
  193.     public function getSourceContext()
  194.     {
  195.         return new Source("{% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
  196. {% block layout_breadcrumb_list_item %}
  197.     {% set homeShowInBreadcrumbMode = dreiscSeoCustomSettings.richSnippets.breadcrumb.home.showInBreadcrumbMode %}
  198.     {% set homeShowInBreadcrumb = 'onlyShop' == homeShowInBreadcrumbMode or 'shopAndJsonLd' == homeShowInBreadcrumbMode %}
  199.     {% set productShowInBreadcrumbMode = dreiscSeoCustomSettings.richSnippets.breadcrumb.product.showInBreadcrumbMode %}
  200.     {% set productShowInBreadcrumb = 'onlyShop' == productShowInBreadcrumbMode or 'shopAndJsonLd' == productShowInBreadcrumbMode %}
  201.     {# Make sure, that we are before the first item #}
  202.     {# EXPLAIN: key = current id of the breadcrumb array; breadcrumb|keys|first = id of the first breadcrumb item #}
  203.     {% block dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb %}
  204.         {% if homeShowInBreadcrumb and breadcrumb|keys|first == key %}
  205.             {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/home.html.twig' with { } only %}
  206.         {% endif %}
  207.     {% endblock %}
  208.     {% if productShowInBreadcrumb %}
  209.         {% block dreisc_seo__layout_breadcrumb_list_item__modify_default %}
  210.             {# We make sure that we do not set the is-active class because the product name is issued as a bread crumb. #}
  211.             {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/default.html.twig' with {
  212.                 ignoreActive: true
  213.             } %}
  214.         {% endblock %}
  215.     {% else %}
  216.         {# Otherwise: Call the parent as fallback #}
  217.         {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/default.html.twig' with {
  218.             ignoreActive: false
  219.         } %}
  220.     {% endif %}
  221.     {# Check, if we reached the last breadcrumb item #}
  222.     {# EXPLAIN: key = current id of the breadcrumb array; product.categoryTree|last = last id of the breadcrumb array #}
  223.     {% block dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb %}
  224.         {% if productShowInBreadcrumb and product.categoryTree|last == key %}
  225.             {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/product.html.twig' with {
  226.                 product: product
  227.             } only %}
  228.         {% endif %}
  229.     {% endblock %}
  230. {% endblock %}
  231. ""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/DreiscSeoPro/src/Resources/views/storefront/layout/breadcrumb.html.twig");
  232.     }
  233. }