<?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;
/* @SwagSocialShopping/storefront/page/product-detail/meta.html.twig */
class __TwigTemplate_7e56dac0ad8a9a4a4f7cac0db4590919 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'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@DreiscSeoPro/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", "@SwagSocialShopping/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", "@SwagSocialShopping/storefront/page/product-detail/meta.html.twig"));
$this->parent = $this->loadTemplate("@DreiscSeoPro/storefront/page/product-detail/meta.html.twig", "@SwagSocialShopping/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 " ";
$this->displayParentBlock("layout_head_meta_tags_opengraph", $context, $blocks);
echo "
";
// line 6
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), "metaInformation", [], "any", false, false, false, 6), "extensions", [], "any", false, false, false, 6), "pinterest", [], "any", false, false, false, 6) && 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), "metaInformation", [], "any", false, false, false, 6), "extensions", [], "any", false, false, false, 6), "pinterest", [], "any", false, false, false, 6), "isPinterestSalesChannel", [], "any", false, false, false, 6))) {
// line 7
echo "
<meta property=\"product:price:amount\"
content=\"";
// line 9
if ( !twig_test_empty(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 9), "calculatedPrices", [], "any", false, false, false, 9))) {
// line 10
echo sw_escape_filter($this->env, twig_number_format_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, 10), "calculatedPrices", [], "any", false, false, false, 10), "first", [], "any", false, false, false, 10), "unitPrice", [], "any", false, false, false, 10), 2, ".", ""), "html", null, true);
} else {
// line 12
echo sw_escape_filter($this->env, twig_number_format_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, 12), "calculatedPrice", [], "any", false, false, false, 12), "unitPrice", [], "any", false, false, false, 12), 2, ".", ""), "html", null, true);
}
// line 13
echo "\"/>
<meta property=\"product:price:currency\"
content=\"";
// line 16
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, 16), "isoCode", [], "any", false, false, false, 16), "html", null, true);
echo "\"/>
<meta property=\"og:brand\"
content=\"";
// line 19
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, 19), "manufacturer", [], "any", false, false, false, 19), "translated", [], "any", false, false, false, 19), "name", [], "any", false, false, false, 19), "html", null, true);
echo "\"/>
<meta property=\"og:availability\"
content=\"";
// line 22
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), "metaInformation", [], "any", false, false, false, 22), "extensions", [], "any", false, false, false, 22), "pinterest", [], "any", false, false, false, 22), "availability", [], "any", false, false, false, 22), "html", null, true);
echo "\"/>
";
}
// line 25
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@SwagSocialShopping/storefront/page/product-detail/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 111 => 25, 105 => 22, 99 => 19, 93 => 16, 88 => 13, 85 => 12, 82 => 10, 80 => 9, 76 => 7, 74 => 6, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/meta.html.twig' %}
{% block layout_head_meta_tags_opengraph %}
{{ parent() }}
{% if page.metaInformation.extensions.pinterest and page.metaInformation.extensions.pinterest.isPinterestSalesChannel %}
<meta property=\"product:price:amount\"
content=\"{%- if page.product.calculatedPrices is not empty -%}
{{ page.product.calculatedPrices.first.unitPrice|number_format(2, '.', '') }}
{%- else -%}
{{ page.product.calculatedPrice.unitPrice|number_format(2, '.', '') }}
{%- endif -%}\"/>
<meta property=\"product:price:currency\"
content=\"{{ context.currency.isoCode }}\"/>
<meta property=\"og:brand\"
content=\"{{ page.product.manufacturer.translated.name }}\"/>
<meta property=\"og:availability\"
content=\"{{ page.metaInformation.extensions.pinterest.availability }}\"/>
{% endif %}
{% endblock %}
", "@SwagSocialShopping/storefront/page/product-detail/meta.html.twig", "/var/www/vhosts/devmt.de/httpdocs/shopware-ce/custom/plugins/SwagSocialShopping/src/Resources/views/storefront/page/product-detail/meta.html.twig");
}
}