var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/6f/6fd836df6e48c4f3f362c47c3a0c8f2626498e81932a1b3cb7f54fc9e91dccc8.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use Twig\Error\LoaderError;
  5. use Twig\Error\RuntimeError;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @Storefront/storefront/component/product/card/meta.html.twig */
  15. class __TwigTemplate_16090bb84827ff8b6f5da861028af3cf979df5d69fb0f5ab287ed83f89363ee0 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.             'component_product_box_rich_snippets_inner' => [$this'block_component_product_box_rich_snippets_inner'],
  26.             'component_product_box_rich_snippets_brand' => [$this'block_component_product_box_rich_snippets_brand'],
  27.             'component_product_box_rich_snippets_gtin13' => [$this'block_component_product_box_rich_snippets_gtin13'],
  28.             'component_product_box_rich_snippets_mpn' => [$this'block_component_product_box_rich_snippets_mpn'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/card/meta.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/card/meta.html.twig"));
  38.         // line 1
  39.         $this->displayBlock('component_product_box_rich_snippets_inner'$context$blocks);
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     public function block_component_product_box_rich_snippets_inner($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_inner"));
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_inner"));
  52.         // line 2
  53.         echo "    ";
  54.         @trigger_error("@deprecated tag:v6.5.0 - File and Block will be removed completely"." (\"@Storefront/storefront/component/product/card/meta.html.twig\" at line 2)."E_USER_DEPRECATED);
  55.         // line 3
  56.         echo "
  57.     ";
  58.         // line 4
  59.         $this->displayBlock('component_product_box_rich_snippets_brand'$context$blocks);
  60.         // line 9
  61.         echo "
  62.     ";
  63.         // line 10
  64.         $this->displayBlock('component_product_box_rich_snippets_gtin13'$context$blocks);
  65.         // line 17
  66.         echo "
  67.     ";
  68.         // line 18
  69.         $this->displayBlock('component_product_box_rich_snippets_mpn'$context$blocks);
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.     }
  75.     // line 4
  76.     public function block_component_product_box_rich_snippets_brand($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_brand"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_brand"));
  83.         // line 5
  84.         echo "        <div itemprop=\"brand\" itemtype=\"https://schema.org/Brand\" itemscope>
  85.             <meta itemprop=\"name\" content=\"";
  86.         // line 6
  87.         echo twig_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "manufacturer", [], "any"falsefalsefalse6), "translated", [], "any"falsefalsefalse6), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  88.         echo "\" />
  89.         </div>
  90.     ";
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.     }
  96.     // line 10
  97.     public function block_component_product_box_rich_snippets_gtin13($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_gtin13"));
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_gtin13"));
  104.         // line 11
  105.         echo "        ";
  106.         $context["ean"] = sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "ean", [], "any"falsefalsefalse11);
  107.         // line 12
  108.         echo "        ";
  109.         if (($context["ean"] ?? null)) {
  110.             // line 13
  111.             echo "            <meta itemprop=\"gtin13\"
  112.                   content=\"";
  113.             // line 14
  114.             echo twig_escape_filter($this->env, ($context["ean"] ?? null), "html"nulltrue);
  115.             echo "\"/>
  116.         ";
  117.         }
  118.         // line 16
  119.         echo "    ";
  120.         
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  122.         
  123.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  124.     }
  125.     // line 18
  126.     public function block_component_product_box_rich_snippets_mpn($context, array $blocks = [])
  127.     {
  128.         $macros $this->macros;
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_mpn"));
  131.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_rich_snippets_mpn"));
  133.         // line 19
  134.         echo "        ";
  135.         if (sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "manufacturerNumber", [], "any"falsefalsefalse19)) {
  136.             // line 20
  137.             echo "            <meta itemprop=\"mpn\"
  138.                   content=\"";
  139.             // line 21
  140.             echo twig_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["product"] ?? null), "manufacturerNumber", [], "any"falsefalsefalse21), "html"nulltrue);
  141.             echo "\"/>
  142.         ";
  143.         }
  144.         // line 23
  145.         echo "    ";
  146.         
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  148.         
  149.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  150.     }
  151.     public function getTemplateName()
  152.     {
  153.         return "@Storefront/storefront/component/product/card/meta.html.twig";
  154.     }
  155.     public function getDebugInfo()
  156.     {
  157.         return array (  173 => 23,  168 => 21,  165 => 20,  162 => 19,  152 => 18,  142 => 16,  137 => 14,  134 => 13,  131 => 12,  128 => 11,  118 => 10,  105 => 6,  102 => 5,  92 => 4,  82 => 18,  79 => 17,  77 => 10,  74 => 9,  72 => 4,  69 => 3,  66 => 2,  47 => 1,);
  158.     }
  159.     public function getSourceContext()
  160.     {
  161.         return new Source("{% block component_product_box_rich_snippets_inner %}
  162.     {% deprecated '@deprecated tag:v6.5.0 - File and Block will be removed completely' %}
  163.     {% block component_product_box_rich_snippets_brand %}
  164.         <div itemprop=\"brand\" itemtype=\"https://schema.org/Brand\" itemscope>
  165.             <meta itemprop=\"name\" content=\"{{ product.manufacturer.translated.name }}\" />
  166.         </div>
  167.     {% endblock %}
  168.     {% block component_product_box_rich_snippets_gtin13 %}
  169.         {% set ean = product.ean %}
  170.         {% if ean %}
  171.             <meta itemprop=\"gtin13\"
  172.                   content=\"{{ ean }}\"/>
  173.         {% endif %}
  174.     {% endblock %}
  175.     {% block component_product_box_rich_snippets_mpn %}
  176.         {% if product.manufacturerNumber %}
  177.             <meta itemprop=\"mpn\"
  178.                   content=\"{{ product.manufacturerNumber }}\"/>
  179.         {% endif %}
  180.     {% endblock %}
  181. {% endblock %}""@Storefront/storefront/component/product/card/meta.html.twig""/www/htdocs/w01c128a/atngmbh.webneo-demo.de/www/vendor/shopware/storefront/Resources/views/storefront/component/product/card/meta.html.twig");
  182.     }
  183. }