var/cache/dev_h7302b6dbeb5b1ab0a68ccd87e6c236f4/twig/86/8651581f559061c17b9440b68d97a54bcbca73b7a0ce10cacd8d844b4300a41b.php line 50

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. /* @KsGeutherTheme/storefront/page/product-detail/meta.html.twig */
  16. class __TwigTemplate_613ab3b3c540b6456a9bc86d70713d9f 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""@KsGeutherTheme/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""@KsGeutherTheme/storefront/page/product-detail/meta.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/page/product-detail/meta.html.twig""@KsGeutherTheme/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 3
  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 4
  56.         echo "\t";
  57.         $context["canonicalUrl"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse4), "id", [], "any"falsefalsefalse4);
  58.         // line 5
  59.         echo "
  60. \t";
  61.         // line 6
  62.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse6), "parentId", [], "any"falsefalsefalse6) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse6), "mainVariantId", [], "any"falsefalsefalse6))) {
  63.             // line 7
  64.             echo "\t\t";
  65.             $context["canonicalUrl"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse7), "mainVariantId", [], "any"falsefalsefalse7);
  66.             // line 8
  67.             echo "\t";
  68.         }
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.     }
  74.     public function getTemplateName()
  75.     {
  76.         return "@KsGeutherTheme/storefront/page/product-detail/meta.html.twig";
  77.     }
  78.     public function isTraitable()
  79.     {
  80.         return false;
  81.     }
  82.     public function getDebugInfo()
  83.     {
  84.         return array (  79 => 8,  76 => 7,  74 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 2,);
  85.     }
  86.     public function getSourceContext()
  87.     {
  88.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/meta.html.twig' %}
  89. {% block layout_head_canonical %}
  90. \t{% set canonicalUrl = page.product.id %}
  91. \t{% if page.product.parentId and page.product.mainVariantId %}
  92. \t\t{% set canonicalUrl = page.product.mainVariantId %}
  93. \t{% endif %}
  94. {% endblock %}
  95. ""@KsGeutherTheme/storefront/page/product-detail/meta.html.twig""/var/www/geuther_staging/custom/plugins/KsGeutherTheme/src/Resources/views/storefront/page/product-detail/meta.html.twig");
  96.     }
  97. }