var/cache/dev_hb199fda60d64cb4aeee9e3d553e0f6c1/twig/63/631fba1d4cc3ed51fd72dda5a301698134573e3776ceddaa66885b029a34cc46.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig */
  14. class __TwigTemplate_60328a748e2549c80abdcb048b5b2869 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'layout_head_meta_tags_opengraph' => [$this'block_layout_head_meta_tags_opengraph'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "@Storefront/storefront/page/product-detail/meta.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig"));
  38.         // line 0
  39.         echo "<!-- INCLUDE BEGIN @CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig (custom/plugins/CoeHidePriceForCustomerGroup/src/Resources/views/storefront/page/product-detail/meta.html.twig) -->";
  40.         echo "<!-- INCLUDE END @CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig -->";
  41.         // line 2
  42.         $this->parent $this->loadTemplate("@Storefront/storefront/page/product-detail/meta.html.twig""@CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_layout_head_meta_tags_opengraph($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  57.         // line 4
  58.         echo "    <meta property=\"og:type\"
  59.           content=\"product\"/>
  60.     <meta property=\"og:site_name\"
  61.           content=\"";
  62.         // line 7
  63.         echo twig_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.shopName"), "html"nulltrue);
  64.         echo "\"/>
  65.     <meta property=\"og:url\"
  66.           content=\"";
  67.         // line 9
  68.         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->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse9), "id", [], "any"falsefalsefalse9)]), "html"nulltrue);
  69.         echo "\"/>
  70.     <meta property=\"og:title\"
  71.           content=\"";
  72.         // line 11
  73.         echo twig_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  74.         echo "\"/>
  75.     <meta property=\"og:description\"
  76.           content=\"";
  77.         // line 14
  78.         echo twig_escape_filter($this->env, ($context["metaDescription"] ?? null), "html"nulltrue);
  79.         echo "\"/>
  80.     <meta property=\"og:image\"
  81.           content=\"";
  82.         // line 16
  83.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse16), "cover", [], "any"falsefalsefalse16), "media", [], "any"falsefalsefalse16), "url", [], "any"falsefalsefalse16), "html"nulltrue);
  84.         echo "\"/>
  85.     ";
  86.         // line 18
  87.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse18), "manufacturer", [], "any"falsefalsefalse18)) {
  88.             // line 19
  89.             echo "        <meta property=\"product:brand\"
  90.               content=\"";
  91.             // line 20
  92.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse20), "manufacturer", [], "any"falsefalsefalse20), "translated", [], "any"falsefalsefalse20), "name", [], "any"falsefalsefalse20), "html"nulltrue);
  93.             echo "\"/>
  94.     ";
  95.         }
  96.         // line 22
  97.         echo "    ";
  98.         if (($context["coeHidePrice"] ?? null)) {
  99.             // line 23
  100.             echo "        <meta property=\"product:price\"
  101.               content=\"";
  102.             // line 24
  103.             echo twig_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context0.0), "html"nulltrue);
  104.             echo "\"/>
  105.     ";
  106.         } else {
  107.             // line 26
  108.             echo "        <meta property=\"product:price\"
  109.               content=\"";
  110.             // line 27
  111.             echo twig_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($contexttwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse27), "calculatedPrice", [], "any"falsefalsefalse27), "unitPrice", [], "any"falsefalsefalse27)), "html"nulltrue);
  112.             echo "\"/>
  113.     ";
  114.         }
  115.         // line 29
  116.         echo "    <meta property=\"product:product_link\"
  117.           content=\"";
  118.         // line 30
  119.         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->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse30), "id", [], "any"falsefalsefalse30)]), "html"nulltrue);
  120.         echo "\"/>
  121.     <meta name=\"twitter:card\"
  122.           content=\"product\"/>
  123.     <meta name=\"twitter:site\"
  124.           content=\"";
  125.         // line 35
  126.         echo twig_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.shopName"), "html"nulltrue);
  127.         echo "\"/>
  128.     <meta name=\"twitter:title\"
  129.           content=\"";
  130.         // line 37
  131.         echo twig_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  132.         echo "\"/>
  133.     <meta name=\"twitter:description\"
  134.           content=\"";
  135.         // line 39
  136.         echo twig_escape_filter($this->env, ($context["metaDescription"] ?? null), "html"nulltrue);
  137.         echo "\"/>
  138.     <meta name=\"twitter:image\"
  139.           content=\"";
  140.         // line 41
  141.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse41), "cover", [], "any"falsefalsefalse41), "media", [], "any"falsefalsefalse41), "url", [], "any"falsefalsefalse41), "html"nulltrue);
  142.         echo "\"/>
  143. ";
  144.         
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146.         
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.     }
  149.     public function getTemplateName()
  150.     {
  151.         return "@CoeHidePriceForCustomerGroup/storefront/page/product-detail/meta.html.twig";
  152.     }
  153.     public function isTraitable()
  154.     {
  155.         return false;
  156.     }
  157.     public function getDebugInfo()
  158.     {
  159.         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,);
  160.     }
  161.     public function getSourceContext()
  162.     {
  163.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/meta.html.twig' %}
  164. {% block layout_head_meta_tags_opengraph %}
  165.     <meta property=\"og:type\"
  166.           content=\"product\"/>
  167.     <meta property=\"og:site_name\"
  168.           content=\"{{ config('core.basicInformation.shopName') }}\"/>
  169.     <meta property=\"og:url\"
  170.           content=\"{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}\"/>
  171.     <meta property=\"og:title\"
  172.           content=\"{{ metaTitle }}\"/>
  173.     <meta property=\"og:description\"
  174.           content=\"{{ metaDescription }}\"/>
  175.     <meta property=\"og:image\"
  176.           content=\"{{ page.product.cover.media.url }}\"/>
  177.     {% if page.product.manufacturer %}
  178.         <meta property=\"product:brand\"
  179.               content=\"{{ page.product.manufacturer.translated.name }}\"/>
  180.     {% endif %}
  181.     {% if coeHidePrice %}
  182.         <meta property=\"product:price\"
  183.               content=\"{{ 0.00|currency }}\"/>
  184.     {% else %}
  185.         <meta property=\"product:price\"
  186.               content=\"{{ page.product.calculatedPrice.unitPrice|currency }}\"/>
  187.     {% endif %}
  188.     <meta property=\"product:product_link\"
  189.           content=\"{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}\"/>
  190.     <meta name=\"twitter:card\"
  191.           content=\"product\"/>
  192.     <meta name=\"twitter:site\"
  193.           content=\"{{ config('core.basicInformation.shopName') }}\"/>
  194.     <meta name=\"twitter:title\"
  195.           content=\"{{ metaTitle }}\"/>
  196.     <meta name=\"twitter:description\"
  197.           content=\"{{ metaDescription }}\"/>
  198.     <meta name=\"twitter:image\"
  199.           content=\"{{ page.product.cover.media.url }}\"/>
  200. {% 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");
  201.     }
  202. }