var/cache/dev_h5b02c48344407d68d61eb74a0cdcd8b0/twig/ce/ce58611dc55e8a35c6237da27c9166b140d69c8e3ac43ffbca6dce9c899bc1a0.php line 40

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. /* @SwagSocialShopping/storefront/page/product-detail/meta.html.twig */
  16. class __TwigTemplate_3f3a20d54dc184e3fded6360af80857a 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_meta_tags_opengraph' => [$this'block_layout_head_meta_tags_opengraph'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@DreiscSeoPro/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""@SwagSocialShopping/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""@SwagSocialShopping/storefront/page/product-detail/meta.html.twig"));
  40.         $this->parent $this->loadTemplate("@DreiscSeoPro/storefront/page/product-detail/meta.html.twig""@SwagSocialShopping/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_meta_tags_opengraph($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_meta_tags_opengraph"));
  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_meta_tags_opengraph"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("layout_head_meta_tags_opengraph"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 6
  61.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse6), "extensions", [], "any"falsefalsefalse6), "pinterest", [], "any"falsefalsefalse6) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse6), "extensions", [], "any"falsefalsefalse6), "pinterest", [], "any"falsefalsefalse6), "isPinterestSalesChannel", [], "any"falsefalsefalse6))) {
  62.             // line 7
  63.             echo "
  64.         <meta property=\"product:price:amount\"
  65.               content=\"";
  66.             // line 9
  67.             if ( !twig_test_empty(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse9), "calculatedPrices", [], "any"falsefalsefalse9))) {
  68.                 // line 10
  69.                 echo sw_escape_filter($this->envtwig_number_format_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse10), "calculatedPrices", [], "any"falsefalsefalse10), "first", [], "any"falsefalsefalse10), "unitPrice", [], "any"falsefalsefalse10), 2"."""), "html"nulltrue);
  70.             } else {
  71.                 // line 12
  72.                 echo sw_escape_filter($this->envtwig_number_format_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse12), "calculatedPrice", [], "any"falsefalsefalse12), "unitPrice", [], "any"falsefalsefalse12), 2"."""), "html"nulltrue);
  73.             }
  74.             // line 13
  75.             echo "\"/>
  76.         <meta property=\"product:price:currency\"
  77.               content=\"";
  78.             // line 16
  79.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "currency", [], "any"falsefalsefalse16), "isoCode", [], "any"falsefalsefalse16), "html"nulltrue);
  80.             echo "\"/>
  81.         <meta property=\"og:brand\"
  82.               content=\"";
  83.             // line 19
  84.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse19), "manufacturer", [], "any"falsefalsefalse19), "translated", [], "any"falsefalsefalse19), "name", [], "any"falsefalsefalse19), "html"nulltrue);
  85.             echo "\"/>
  86.         <meta property=\"og:availability\"
  87.               content=\"";
  88.             // line 22
  89.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse22), "extensions", [], "any"falsefalsefalse22), "pinterest", [], "any"falsefalsefalse22), "availability", [], "any"falsefalsefalse22), "html"nulltrue);
  90.             echo "\"/>
  91.     ";
  92.         }
  93.         // line 25
  94.         echo "
  95. ";
  96.         
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  98.         
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100.     }
  101.     public function getTemplateName()
  102.     {
  103.         return "@SwagSocialShopping/storefront/page/product-detail/meta.html.twig";
  104.     }
  105.     public function isTraitable()
  106.     {
  107.         return false;
  108.     }
  109.     public function getDebugInfo()
  110.     {
  111.         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,);
  112.     }
  113.     public function getSourceContext()
  114.     {
  115.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/meta.html.twig' %}
  116. {% block layout_head_meta_tags_opengraph %}
  117.     {{ parent() }}
  118.     {% if page.metaInformation.extensions.pinterest and page.metaInformation.extensions.pinterest.isPinterestSalesChannel %}
  119.         <meta property=\"product:price:amount\"
  120.               content=\"{%- if page.product.calculatedPrices is not empty -%}
  121.                            {{ page.product.calculatedPrices.first.unitPrice|number_format(2, '.', '') }}
  122.                        {%- else -%}
  123.                            {{ page.product.calculatedPrice.unitPrice|number_format(2, '.', '') }}
  124.                        {%- endif -%}\"/>
  125.         <meta property=\"product:price:currency\"
  126.               content=\"{{ context.currency.isoCode }}\"/>
  127.         <meta property=\"og:brand\"
  128.               content=\"{{ page.product.manufacturer.translated.name }}\"/>
  129.         <meta property=\"og:availability\"
  130.               content=\"{{ page.metaInformation.extensions.pinterest.availability }}\"/>
  131.     {% endif %}
  132. {% endblock %}
  133. ""@SwagSocialShopping/storefront/page/product-detail/meta.html.twig""/var/www/staging1.grimm-gastrobedarf.de/custom/plugins/SwagSocialShopping/src/Resources/views/storefront/page/product-detail/meta.html.twig");
  134.     }
  135. }