var/cache/dev_hb3717a76ebc1566204522dabc772a7b6/twig/2a/2af9edc088edee316a47e1a5dab3e7a0048c84ad09e5dc11092ff4c6ab1803b2.php line 40

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. /* @ThemeOkeOnline/storefront/page/product-detail/meta.html.twig */
  16. class __TwigTemplate_c9c833a1b62336d613617e675e67c61e 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_head_canonical' => [$this'block_layout_head_canonical'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/page/product-detail/meta.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/page/product-detail/meta.html.twig""@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 5
  48.     public function block_layout_head_canonical($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  55.         // line 6
  56.         echo "    ";
  57.         $context["canonicalUrl"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse6), "id", [], "any"falsefalsefalse6);
  58.         // line 7
  59.         echo "
  60.     ";
  61.         // line 8
  62.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse8), "canonicalProductId", [], "any"falsefalsefalse8)) {
  63.             // line 9
  64.             echo "        ";
  65.             $context["canonicalUrl"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse9), "canonicalProductId", [], "any"falsefalsefalse9);
  66.             // line 10
  67.             echo "    ";
  68.         }
  69.         // line 11
  70.         echo "
  71.     ";
  72.         // line 13
  73.         echo "    ";
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.     }
  79.     public function getTemplateName()
  80.     {
  81.         return "@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig";
  82.     }
  83.     public function isTraitable()
  84.     {
  85.         return false;
  86.     }
  87.     public function getDebugInfo()
  88.     {
  89.         return array (  85 => 13,  82 => 11,  79 => 10,  76 => 9,  74 => 8,  71 => 7,  68 => 6,  58 => 5,  35 => 2,);
  90.     }
  91.     public function getSourceContext()
  92.     {
  93.         return new Source("{% sw_extends '@parent/storefront/page/product-detail/meta.html.twig' %}
  94. {# Todo: Make a setting for canonicalUrl or include in client-specific theme #}
  95. {% block layout_head_canonical %}
  96.     {% set canonicalUrl = page.product.id %}
  97.     {% if page.product.canonicalProductId %}
  98.         {% set canonicalUrl = page.product.canonicalProductId %}
  99.     {% endif %}
  100.     {#ToDo: check whether seoUrlVloerkleden exists #}
  101.     {#<link rel=\"canonical\" href=\"{{ seoUrlVloerkleden('frontend.detail.page', { productId: canonicalUrl }) }}\" />#}
  102. {% endblock %}""@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig""/home/atc/shopware/custom/plugins/ThemeOkeonline/src/Resources/views/storefront/page/product-detail/meta.html.twig");
  103.     }
  104. }