<?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;
/* @Storefront/storefront/page/product-detail/meta.html.twig */
class __TwigTemplate_75272f4ccc2c3c32a358b5c0b01b8f45 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_meta_tags_opengraph' => [$this, 'block_layout_head_meta_tags_opengraph'],
'layout_head_title_inner' => [$this, 'block_layout_head_title_inner'],
'layout_head_canonical' => [$this, 'block_layout_head_canonical'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@SwagPayPal/storefront/layout/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", "@Storefront/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", "@Storefront/storefront/page/product-detail/meta.html.twig"));
$this->parent = $this->loadTemplate("@SwagPayPal/storefront/layout/meta.html.twig", "@Storefront/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 3
public function block_layout_head_meta_tags_opengraph($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_meta_tags_opengraph"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_opengraph"));
// line 4
echo " <meta property=\"og:type\"
content=\"product\"/>
<meta property=\"og:site_name\"
content=\"";
// line 7
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.basicInformation.shopName"), "html", null, true);
echo "\"/>
<meta property=\"og:url\"
content=\"";
// line 9
echo sw_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 9), "id", [], "any", false, false, false, 9)]), "html", null, true);
echo "\"/>
<meta property=\"og:title\"
content=\"";
// line 11
echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "\"/>
<meta property=\"og:description\"
content=\"";
// line 14
echo sw_escape_filter($this->env, ($context["metaDescription"] ?? null), "html", null, true);
echo "\"/>
<meta property=\"og:image\"
content=\"";
// line 16
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 16), "cover", [], "any", false, false, false, 16), "media", [], "any", false, false, false, 16), "url", [], "any", false, false, false, 16), "html", null, true);
echo "\"/>
";
// line 18
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 18), "manufacturer", [], "any", false, false, false, 18)) {
// line 19
echo " <meta property=\"product:brand\"
content=\"";
// line 20
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 20), "manufacturer", [], "any", false, false, false, 20), "translated", [], "any", false, false, false, 20), "name", [], "any", false, false, false, 20), "html", null, true);
echo "\"/>
";
}
// line 22
echo "
";
// line 23
$context["metaPrice"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 23), "calculatedPrice", [], "any", false, false, false, 23);
// line 24
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 24), "calculatedPrices", [], "any", false, false, false, 24), "count", [], "any", false, false, false, 24) > 0)) {
// line 25
echo " ";
$context["metaPrice"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 25), "calculatedPrices", [], "any", false, false, false, 25), "last", [], "any", false, false, false, 25);
// line 26
echo " ";
}
// line 27
echo " <meta property=\"product:price:amount\"
content=\"";
// line 28
echo sw_escape_filter($this->env, twig_round(sw_get_attribute($this->env, $this->source, ($context["metaPrice"] ?? null), "unitPrice", [], "any", false, false, false, 28), sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "currency", [], "any", false, false, false, 28), "itemRounding", [], "any", false, false, false, 28), "decimals", [], "any", false, false, false, 28)), "html", null, true);
echo "\"/>
<meta property=\"product:price:currency\"
content=\"";
// line 30
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "currency", [], "any", false, false, false, 30), "isoCode", [], "any", false, false, false, 30), "html", null, true);
echo "\"/>
<meta property=\"product:product_link\"
content=\"";
// line 32
echo sw_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 32), "id", [], "any", false, false, false, 32)]), "html", null, true);
echo "\"/>
<meta name=\"twitter:card\"
content=\"product\"/>
<meta name=\"twitter:site\"
content=\"";
// line 37
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.basicInformation.shopName"), "html", null, true);
echo "\"/>
<meta name=\"twitter:title\"
content=\"";
// line 39
echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "\"/>
<meta name=\"twitter:description\"
content=\"";
// line 41
echo sw_escape_filter($this->env, ($context["metaDescription"] ?? null), "html", null, true);
echo "\"/>
<meta name=\"twitter:image\"
content=\"";
// line 43
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 43), "cover", [], "any", false, false, false, 43), "media", [], "any", false, false, false, 43), "url", [], "any", false, false, false, 43), "html", null, true);
echo "\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 46
public function block_layout_head_title_inner($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_title_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_title_inner"));
// line 47
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaInformation", [], "any", false, false, false, 47), "metaTitle", [], "any", false, false, false, 47)) {
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaInformation", [], "any", false, false, false, 47), "metaTitle", [], "any", false, false, false, 47), "html", null, true);
} else {
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 47), "translated", [], "any", false, false, false, 47), "name", [], "any", false, false, false, 47), "html", null, true);
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 47), "variation", [], "any", false, false, false, 47)) {
echo " - ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 47), "variation", [], "any", false, false, false, 47));
foreach ($context['_seq'] as $context["_key"] => $context["variation"]) {
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["variation"], "group", [], "any", false, false, false, 47), "html", null, true);
echo ": ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["variation"], "option", [], "any", false, false, false, 47), "html", null, true);
if ((twig_last($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 47), "variation", [], "any", false, false, false, 47)) != $context["variation"])) {
echo " | ";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 50
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 51
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, 51), "id", [], "any", false, false, false, 51);
// line 52
echo "
";
// line 53
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 53), "canonicalProductId", [], "any", false, false, false, 53)) {
// line 54
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, 54), "canonicalProductId", [], "any", false, false, false, 54);
// line 55
echo " ";
}
// line 56
echo "
<link rel=\"canonical\" href=\"";
// line 57
echo sw_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => ($context["canonicalUrl"] ?? null)]), "html", null, true);
echo "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/page/product-detail/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 241 => 57, 238 => 56, 235 => 55, 232 => 54, 230 => 53, 227 => 52, 224 => 51, 214 => 50, 183 => 47, 173 => 46, 161 => 43, 156 => 41, 151 => 39, 146 => 37, 138 => 32, 133 => 30, 128 => 28, 125 => 27, 122 => 26, 119 => 25, 116 => 24, 114 => 23, 111 => 22, 106 => 20, 103 => 19, 101 => 18, 96 => 16, 91 => 14, 85 => 11, 80 => 9, 75 => 7, 70 => 4, 60 => 3, 37 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_meta_tags_opengraph %}
<meta property=\"og:type\"
content=\"product\"/>
<meta property=\"og:site_name\"
content=\"{{ config('core.basicInformation.shopName') }}\"/>
<meta property=\"og:url\"
content=\"{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}\"/>
<meta property=\"og:title\"
content=\"{{ metaTitle }}\"/>
<meta property=\"og:description\"
content=\"{{ metaDescription }}\"/>
<meta property=\"og:image\"
content=\"{{ page.product.cover.media.url }}\"/>
{% if page.product.manufacturer %}
<meta property=\"product:brand\"
content=\"{{ page.product.manufacturer.translated.name }}\"/>
{% endif %}
{% set metaPrice = page.product.calculatedPrice %}
{% if page.product.calculatedPrices.count > 0 %}
{% set metaPrice = page.product.calculatedPrices.last %}
{% endif %}
<meta property=\"product:price:amount\"
content=\"{{ metaPrice.unitPrice|round(context.currency.itemRounding.decimals) }}\"/>
<meta property=\"product:price:currency\"
content=\"{{ context.currency.isoCode }}\"/>
<meta property=\"product:product_link\"
content=\"{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}\"/>
<meta name=\"twitter:card\"
content=\"product\"/>
<meta name=\"twitter:site\"
content=\"{{ config('core.basicInformation.shopName') }}\"/>
<meta name=\"twitter:title\"
content=\"{{ metaTitle }}\"/>
<meta name=\"twitter:description\"
content=\"{{ metaDescription }}\"/>
<meta name=\"twitter:image\"
content=\"{{ page.product.cover.media.url }}\"/>
{% endblock %}
{% block layout_head_title_inner %}
{% if page.metaInformation.metaTitle %}{{ page.metaInformation.metaTitle }}{% else %}{{ page.product.translated.name }}{% if page.product.variation %} - {% for variation in page.product.variation %}{{ variation.group }}: {{ variation.option }}{% if page.product.variation|last != variation %}{{ \" | \" }}{% endif %}{% endfor %}{% endif %}{% endif %}
{% endblock %}
{% block layout_head_canonical %}
{% set canonicalUrl = page.product.id %}
{% if page.product.canonicalProductId %}
{% set canonicalUrl = page.product.canonicalProductId %}
{% endif %}
<link rel=\"canonical\" href=\"{{ seoUrl('frontend.detail.page', { productId: canonicalUrl }) }}\" />
{% endblock %}
", "@Storefront/storefront/page/product-detail/meta.html.twig", "/var/www/dev.artecon.426.agency/vendor/shopware/storefront/Resources/views/storefront/page/product-detail/meta.html.twig");
}
}