var/cache/dev_h00a6008ac8d83daed65bb1b250bc45b1/twig/3d/3de267c2707d5e183dc902ca2de443a3224185094cf1b714b24168fde026c55c.php line 52

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. /* @Storefront/storefront/page/product-detail/meta.html.twig */
  16. class __TwigTemplate_75272f4ccc2c3c32a358b5c0b01b8f45 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.             'layout_head_title_inner' => [$this'block_layout_head_title_inner'],
  27.             'layout_head_canonical' => [$this'block_layout_head_canonical'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "@SwagPayPal/storefront/layout/meta.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/product-detail/meta.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/product-detail/meta.html.twig"));
  42.         $this->parent $this->loadTemplate("@SwagPayPal/storefront/layout/meta.html.twig""@Storefront/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 sw_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 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->sourcesw_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 sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  74.         echo "\"/>
  75.     <meta property=\"og:description\"
  76.           content=\"";
  77.         // line 14
  78.         echo sw_escape_filter($this->env, ($context["metaDescription"] ?? null), "html"nulltrue);
  79.         echo "\"/>
  80.     <meta property=\"og:image\"
  81.           content=\"";
  82.         // line 16
  83.         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"falsefalsefalse16), "cover", [], "any"falsefalsefalse16), "media", [], "any"falsefalsefalse16), "url", [], "any"falsefalsefalse16), "html"nulltrue);
  84.         echo "\"/>
  85.     ";
  86.         // line 18
  87.         if (sw_get_attribute($this->env$this->sourcesw_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 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"falsefalsefalse20), "manufacturer", [], "any"falsefalsefalse20), "translated", [], "any"falsefalsefalse20), "name", [], "any"falsefalsefalse20), "html"nulltrue);
  93.             echo "\"/>
  94.     ";
  95.         }
  96.         // line 22
  97.         echo "
  98.     ";
  99.         // line 23
  100.         $context["metaPrice"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse23), "calculatedPrice", [], "any"falsefalsefalse23);
  101.         // line 24
  102.         echo "    ";
  103.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse24), "calculatedPrices", [], "any"falsefalsefalse24), "count", [], "any"falsefalsefalse24) > 0)) {
  104.             // line 25
  105.             echo "        ";
  106.             $context["metaPrice"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse25), "calculatedPrices", [], "any"falsefalsefalse25), "last", [], "any"falsefalsefalse25);
  107.             // line 26
  108.             echo "    ";
  109.         }
  110.         // line 27
  111.         echo "    <meta property=\"product:price:amount\"
  112.           content=\"";
  113.         // line 28
  114.         echo sw_escape_filter($this->envtwig_round(sw_get_attribute($this->env$this->source, ($context["metaPrice"] ?? null), "unitPrice", [], "any"falsefalsefalse28), sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "currency", [], "any"falsefalsefalse28), "itemRounding", [], "any"falsefalsefalse28), "decimals", [], "any"falsefalsefalse28)), "html"nulltrue);
  115.         echo "\"/>
  116.     <meta property=\"product:price:currency\"
  117.           content=\"";
  118.         // line 30
  119.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "currency", [], "any"falsefalsefalse30), "isoCode", [], "any"falsefalsefalse30), "html"nulltrue);
  120.         echo "\"/>
  121.     <meta property=\"product:product_link\"
  122.           content=\"";
  123.         // line 32
  124.         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->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse32), "id", [], "any"falsefalsefalse32)]), "html"nulltrue);
  125.         echo "\"/>
  126.     <meta name=\"twitter:card\"
  127.           content=\"product\"/>
  128.     <meta name=\"twitter:site\"
  129.           content=\"";
  130.         // line 37
  131.         echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.shopName"), "html"nulltrue);
  132.         echo "\"/>
  133.     <meta name=\"twitter:title\"
  134.           content=\"";
  135.         // line 39
  136.         echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  137.         echo "\"/>
  138.     <meta name=\"twitter:description\"
  139.           content=\"";
  140.         // line 41
  141.         echo sw_escape_filter($this->env, ($context["metaDescription"] ?? null), "html"nulltrue);
  142.         echo "\"/>
  143.     <meta name=\"twitter:image\"
  144.           content=\"";
  145.         // line 43
  146.         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"falsefalsefalse43), "cover", [], "any"falsefalsefalse43), "media", [], "any"falsefalsefalse43), "url", [], "any"falsefalsefalse43), "html"nulltrue);
  147.         echo "\"/>
  148. ";
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.     }
  154.     // line 46
  155.     public function block_layout_head_title_inner($context, array $blocks = [])
  156.     {
  157.         $macros $this->macros;
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  162.         // line 47
  163.         echo "    ";
  164.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse47), "metaTitle", [], "any"falsefalsefalse47)) {
  165.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse47), "metaTitle", [], "any"falsefalsefalse47), "html"nulltrue);
  166.         } else {
  167.             echo sw_escape_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"falsefalsefalse47), "translated", [], "any"falsefalsefalse47), "name", [], "any"falsefalsefalse47), "html"nulltrue);
  168.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse47), "variation", [], "any"falsefalsefalse47)) {
  169.                 echo " - ";
  170.                 $context['_parent'] = $context;
  171.                 $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse47), "variation", [], "any"falsefalsefalse47));
  172.                 foreach ($context['_seq'] as $context["_key"] => $context["variation"]) {
  173.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["variation"], "group", [], "any"falsefalsefalse47), "html"nulltrue);
  174.                     echo ": ";
  175.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["variation"], "option", [], "any"falsefalsefalse47), "html"nulltrue);
  176.                     if ((twig_last($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse47), "variation", [], "any"falsefalsefalse47)) != $context["variation"])) {
  177.                         echo " | ";
  178.                     }
  179.                 }
  180.                 $_parent $context['_parent'];
  181.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variation'], $context['_parent'], $context['loop']);
  182.                 $context array_intersect_key($context$_parent) + $_parent;
  183.             }
  184.         }
  185.         
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  187.         
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  189.     }
  190.     // line 50
  191.     public function block_layout_head_canonical($context, array $blocks = [])
  192.     {
  193.         $macros $this->macros;
  194.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  195.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  197.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  198.         // line 51
  199.         echo "    ";
  200.         $context["canonicalUrl"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse51), "id", [], "any"falsefalsefalse51);
  201.         // line 52
  202.         echo "
  203.     ";
  204.         // line 53
  205.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse53), "canonicalProductId", [], "any"falsefalsefalse53)) {
  206.             // line 54
  207.             echo "        ";
  208.             $context["canonicalUrl"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse54), "canonicalProductId", [], "any"falsefalsefalse54);
  209.             // line 55
  210.             echo "    ";
  211.         }
  212.         // line 56
  213.         echo "
  214.     <link rel=\"canonical\" href=\"";
  215.         // line 57
  216.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => ($context["canonicalUrl"] ?? null)]), "html"nulltrue);
  217.         echo "\" />
  218. ";
  219.         
  220.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  221.         
  222.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  223.     }
  224.     public function getTemplateName()
  225.     {
  226.         return "@Storefront/storefront/page/product-detail/meta.html.twig";
  227.     }
  228.     public function isTraitable()
  229.     {
  230.         return false;
  231.     }
  232.     public function getDebugInfo()
  233.     {
  234.         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,);
  235.     }
  236.     public function getSourceContext()
  237.     {
  238.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  239. {% block layout_head_meta_tags_opengraph %}
  240.     <meta property=\"og:type\"
  241.           content=\"product\"/>
  242.     <meta property=\"og:site_name\"
  243.           content=\"{{ config('core.basicInformation.shopName') }}\"/>
  244.     <meta property=\"og:url\"
  245.           content=\"{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}\"/>
  246.     <meta property=\"og:title\"
  247.           content=\"{{ metaTitle }}\"/>
  248.     <meta property=\"og:description\"
  249.           content=\"{{ metaDescription }}\"/>
  250.     <meta property=\"og:image\"
  251.           content=\"{{ page.product.cover.media.url }}\"/>
  252.     {% if page.product.manufacturer %}
  253.         <meta property=\"product:brand\"
  254.               content=\"{{ page.product.manufacturer.translated.name }}\"/>
  255.     {% endif %}
  256.     {% set metaPrice = page.product.calculatedPrice %}
  257.     {% if page.product.calculatedPrices.count > 0 %}
  258.         {% set metaPrice = page.product.calculatedPrices.last %}
  259.     {% endif %}
  260.     <meta property=\"product:price:amount\"
  261.           content=\"{{ metaPrice.unitPrice|round(context.currency.itemRounding.decimals) }}\"/>
  262.     <meta property=\"product:price:currency\"
  263.           content=\"{{ context.currency.isoCode }}\"/>
  264.     <meta property=\"product:product_link\"
  265.           content=\"{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}\"/>
  266.     <meta name=\"twitter:card\"
  267.           content=\"product\"/>
  268.     <meta name=\"twitter:site\"
  269.           content=\"{{ config('core.basicInformation.shopName') }}\"/>
  270.     <meta name=\"twitter:title\"
  271.           content=\"{{ metaTitle }}\"/>
  272.     <meta name=\"twitter:description\"
  273.           content=\"{{ metaDescription }}\"/>
  274.     <meta name=\"twitter:image\"
  275.           content=\"{{ page.product.cover.media.url }}\"/>
  276. {% endblock %}
  277. {% block layout_head_title_inner %}
  278.     {% 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 %}
  279. {% endblock %}
  280. {% block layout_head_canonical %}
  281.     {% set canonicalUrl = page.product.id %}
  282.     {% if page.product.canonicalProductId %}
  283.         {% set canonicalUrl = page.product.canonicalProductId %}
  284.     {% endif %}
  285.     <link rel=\"canonical\" href=\"{{ seoUrl('frontend.detail.page', { productId: canonicalUrl }) }}\" />
  286. {% endblock %}
  287. ""@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");
  288.     }
  289. }