var/cache/dev_h24eaf6979abf10b67456256024eb9e5e/twig/cc/cc53f4c8ecd579157dc136e8cfe5bc35bb6f988d5b2c84cb4f26a39bff0b2f5f.php line 43

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_2d253b44b86bbff47cc20901f1ab9137 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     public function block_layout_breadcrumb_list_item($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_list_item"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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"] = (($context["product"] ?? null) && (("onlyShop" ==         // line 9
  72. ($context["productShowInBreadcrumbMode"] ?? null)) || ("shopAndJsonLd" == ($context["productShowInBreadcrumbMode"] ?? null))));
  73.         // line 11
  74.         echo "
  75.     ";
  76.         // line 13
  77.         echo "    ";
  78.         // line 14
  79.         echo "    ";
  80.         $this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb'$context$blocks);
  81.         // line 19
  82.         echo "
  83.     ";
  84.         // line 20
  85.         if (($context["productShowInBreadcrumb"] ?? null)) {
  86.             // line 21
  87.             echo "        ";
  88.             $this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__modify_default'$context$blocks);
  89.             // line 27
  90.             echo "    ";
  91.         } else {
  92.             // line 28
  93.             echo "        ";
  94.             // line 29
  95.             echo "        ";
  96.             $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]));
  97.             // line 32
  98.             echo "    ";
  99.         }
  100.         // line 33
  101.         echo "
  102.     ";
  103.         // line 35
  104.         echo "    ";
  105.         // line 36
  106.         echo "    ";
  107.         $this->displayBlock('dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb'$context$blocks);
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     // line 14
  114.     public function block_dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb($context, array $blocks = [])
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb"));
  121.         // line 15
  122.         echo "        ";
  123.         if ((($context["homeShowInBreadcrumb"] ?? null) && (twig_first($this->envtwig_get_array_keys_filter(($context["breadcrumb"] ?? null))) == ($context["key"] ?? null)))) {
  124.             // line 16
  125.             echo "            ";
  126.             $this->loadTemplate("@DreiscSeoPro/storefront/dreisc-seo/component/breadcrumb/home.html.twig""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig"16)->display(twig_to_array([]));
  127.             // line 17
  128.             echo "        ";
  129.         }
  130.         // line 18
  131.         echo "    ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     // line 21
  138.     public function block_dreisc_seo__layout_breadcrumb_list_item__modify_default($context, array $blocks = [])
  139.     {
  140.         $macros $this->macros;
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__modify_default"));
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__modify_default"));
  145.         // line 22
  146.         echo "            ";
  147.         // line 23
  148.         echo "            ";
  149.         $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]));
  150.         // line 26
  151.         echo "        ";
  152.         
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154.         
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156.     }
  157.     // line 36
  158.     public function block_dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb($context, array $blocks = [])
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb"));
  165.         // line 37
  166.         echo "        ";
  167.         if ((($context["productShowInBreadcrumb"] ?? null) && (sw_get_attribute($this->env$this->sourcetwig_last($this->env, ($context["breadcrumbCategories"] ?? null)), "id", [], "any"falsefalsefalse37) == ($context["key"] ?? null)))) {
  168.             // line 38
  169.             echo "            ";
  170.             $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
  171. ($context["product"] ?? null)]));
  172.             // line 41
  173.             echo "        ";
  174.         }
  175.         // line 42
  176.         echo "    ";
  177.         
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179.         
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  181.     }
  182.     public function getTemplateName()
  183.     {
  184.         return "@DreiscSeoPro/storefront/layout/breadcrumb.html.twig";
  185.     }
  186.     public function isTraitable()
  187.     {
  188.         return false;
  189.     }
  190.     public function getDebugInfo()
  191.     {
  192.         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,);
  193.     }
  194.     public function getSourceContext()
  195.     {
  196.         return new Source("{% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
  197. {% block layout_breadcrumb_list_item %}
  198.     {% set homeShowInBreadcrumbMode = dreiscSeoCustomSettings.richSnippets.breadcrumb.home.showInBreadcrumbMode %}
  199.     {% set homeShowInBreadcrumb = 'onlyShop' == homeShowInBreadcrumbMode or 'shopAndJsonLd' == homeShowInBreadcrumbMode %}
  200.     {% set productShowInBreadcrumbMode = dreiscSeoCustomSettings.richSnippets.breadcrumb.product.showInBreadcrumbMode %}
  201.     {% set productShowInBreadcrumb = product and (
  202.         'onlyShop' == productShowInBreadcrumbMode or 'shopAndJsonLd' == productShowInBreadcrumbMode)
  203.     %}
  204.     {# Make sure, that we are before the first item #}
  205.     {# EXPLAIN: key = current id of the breadcrumb array; breadcrumb|keys|first = id of the first breadcrumb item #}
  206.     {% block dreisc_seo__layout_breadcrumb_list_item__add_home_breadcrumb %}
  207.         {% if homeShowInBreadcrumb and breadcrumb|keys|first == key %}
  208.             {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/home.html.twig' with { } only %}
  209.         {% endif %}
  210.     {% endblock %}
  211.     {% if productShowInBreadcrumb %}
  212.         {% block dreisc_seo__layout_breadcrumb_list_item__modify_default %}
  213.             {# We make sure that we do not set the is-active class because the product name is issued as a bread crumb. #}
  214.             {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/default.html.twig' with {
  215.                 ignoreActive: true
  216.             } %}
  217.         {% endblock %}
  218.     {% else %}
  219.         {# Otherwise: Call the parent as fallback #}
  220.         {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/default.html.twig' with {
  221.             ignoreActive: false
  222.         } %}
  223.     {% endif %}
  224.     {# Check, if we reached the last breadcrumb item #}
  225.     {# EXPLAIN: key = current id of the breadcrumb array; breadcrumbCategories|last = last id of the breadcrumb array #}
  226.     {% block dreisc_seo__layout_breadcrumb_list_item__add_product_breadcrumb %}
  227.         {% if productShowInBreadcrumb and breadcrumbCategories|last.id == key %}
  228.             {% sw_include '@Storefront/storefront/dreisc-seo/component/breadcrumb/product.html.twig' with {
  229.                 product: product
  230.             } only %}
  231.         {% endif %}
  232.     {% endblock %}
  233. {% endblock %}
  234. ""@DreiscSeoPro/storefront/layout/breadcrumb.html.twig""/var/www/html/htdocs/custom/plugins/DreiscSeoPro/src/Resources/views/storefront/layout/breadcrumb.html.twig");
  235.     }
  236. }