<?php
use Twig\Environment;
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;
/* @CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig */
class __TwigTemplate_60328a748e2549c80abdcb048b5b2869 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 "@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", "@CoeHidePriceForCustomerGroup/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", "@CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig"));
// line 0
echo "<!-- INCLUDE BEGIN @CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig (custom/plugins/CoeHidePriceForCustomerGroup/src/Resources/views/storefront/page/product-detail/meta.html.twig) -->";
echo "<!-- INCLUDE END @CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig -->";
// line 2
$this->parent = $this->loadTemplate("@Storefront/storefront/page/product-detail/meta.html.twig", "@CoeHidePriceForCustomerGroup/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 twig_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 twig_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => twig_get_attribute($this->env, $this->source, twig_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 twig_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "\"/>
<meta property=\"og:description\"
content=\"";
// line 14
echo twig_escape_filter($this->env, ($context["metaDescription"] ?? null), "html", null, true);
echo "\"/>
<meta property=\"og:image\"
content=\"";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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 (twig_get_attribute($this->env, $this->source, twig_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 twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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 " ";
if (($context["coeHidePrice"] ?? null)) {
// line 23
echo " <meta property=\"product:price\"
content=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context, 0.0), "html", null, true);
echo "\"/>
";
} else {
// line 26
echo " <meta property=\"product:price\"
content=\"";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 27), "calculatedPrice", [], "any", false, false, false, 27), "unitPrice", [], "any", false, false, false, 27)), "html", null, true);
echo "\"/>
";
}
// line 29
echo " <meta property=\"product:product_link\"
content=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 30), "id", [], "any", false, false, false, 30)]), "html", null, true);
echo "\"/>
<meta name=\"twitter:card\"
content=\"product\"/>
<meta name=\"twitter:site\"
content=\"";
// line 35
echo twig_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 37
echo twig_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "\"/>
<meta name=\"twitter:description\"
content=\"";
// line 39
echo twig_escape_filter($this->env, ($context["metaDescription"] ?? null), "html", null, true);
echo "\"/>
<meta name=\"twitter:image\"
content=\"";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 41), "cover", [], "any", false, false, false, 41), "media", [], "any", false, false, false, 41), "url", [], "any", false, false, false, 41), "html", null, true);
echo "\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 158 => 41, 153 => 39, 148 => 37, 143 => 35, 135 => 30, 132 => 29, 127 => 27, 124 => 26, 119 => 24, 116 => 23, 113 => 22, 108 => 20, 105 => 19, 103 => 18, 98 => 16, 93 => 14, 87 => 11, 82 => 9, 77 => 7, 72 => 4, 62 => 3, 51 => 2, 48 => 0, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/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 %}
{% if coeHidePrice %}
<meta property=\"product:price\"
content=\"{{ 0.00|currency }}\"/>
{% else %}
<meta property=\"product:price\"
content=\"{{ page.product.calculatedPrice.unitPrice|currency }}\"/>
{% endif %}
<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 %}", "@CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig", "/home/p-a6iu1i/html/hbc-shopware-stage-qcsct/dev/custom/plugins/CoeHidePriceForCustomerGroup/src/Resources/views/storefront/page/product-detail/meta.html.twig");
}
}