<?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;
/* @ThemeOkeOnline/storefront/page/product-detail/meta.html.twig */
class __TwigTemplate_c9c833a1b62336d613617e675e67c61e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_canonical' => [$this, 'block_layout_head_canonical'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/product-detail/meta.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/product-detail/meta.html.twig", "@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_layout_head_canonical($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_canonical"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_canonical"));
// line 6
echo " ";
$context["canonicalUrl"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 6), "id", [], "any", false, false, false, 6);
// line 7
echo "
";
// line 8
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 8), "canonicalProductId", [], "any", false, false, false, 8)) {
// line 9
echo " ";
$context["canonicalUrl"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 9), "canonicalProductId", [], "any", false, false, false, 9);
// line 10
echo " ";
}
// line 11
echo "
";
// line 13
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ThemeOkeOnline/storefront/page/product-detail/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 85 => 13, 82 => 11, 79 => 10, 76 => 9, 74 => 8, 71 => 7, 68 => 6, 58 => 5, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@parent/storefront/page/product-detail/meta.html.twig' %}
{# Todo: Make a setting for canonicalUrl or include in client-specific theme #}
{% block layout_head_canonical %}
{% set canonicalUrl = page.product.id %}
{% if page.product.canonicalProductId %}
{% set canonicalUrl = page.product.canonicalProductId %}
{% endif %}
{#ToDo: check whether seoUrlVloerkleden exists #}
{#<link rel=\"canonical\" href=\"{{ seoUrlVloerkleden('frontend.detail.page', { productId: canonicalUrl }) }}\" />#}
{% 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");
}
}