var/cache/dev_h7302b6dbeb5b1ab0a68ccd87e6c236f4/twig/b2/b2b62bfc4f378012de264753c347ab65fb1404aca1b4782e1947286669941fb6.php line 42

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. /* @NetzpBlog6/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_79516f88f48971c623da49108e066073 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_general' => [$this'block_layout_head_meta_tags_general'],
  26.             'layout_head_meta_tags_opengraph' => [$this'block_layout_head_meta_tags_opengraph'],
  27.             'layout_head_meta_tags_schema_webpage' => [$this'block_layout_head_meta_tags_schema_webpage'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "@SolidAdvancedSliderElements/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""@NetzpBlog6/storefront/layout/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""@NetzpBlog6/storefront/layout/meta.html.twig"));
  42.         $context["postThumb"] = ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "image", [], "any"falsefalsefalse2), "getThumbnails", [], "method"falsefalsefalse2)) ? (twig_first($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\SecurityExtension']->filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "image", [], "any"falsefalsefalse2), "getThumbnails", [], "method"falsefalsefalse2), function ($__t__) use ($context$macros) { $context["t"] = $__t__; return (sw_get_attribute($this->env$this->source, ($context["t"] ?? null), "getHeight", [], "method"falsefalsefalse2) <= 500); }))) : (null));
  43.         // line 3
  44.         $context["authorThumb"] = ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "author", [], "any"falsefalsefalse3), "image", [], "any"falsefalsefalse3), "getThumbnails", [], "method"falsefalsefalse3)) ? (twig_first($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\SecurityExtension']->filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "author", [], "any"falsefalsefalse3), "image", [], "any"falsefalsefalse3), "getThumbnails", [], "method"falsefalsefalse3), function ($__t__) use ($context$macros) { $context["t"] = $__t__; return (sw_get_attribute($this->env$this->source, ($context["t"] ?? null), "getHeight", [], "method"falsefalsefalse3) <= 500); }))) : (null));
  45.         // line 2
  46.         $this->parent $this->loadTemplate("@SolidAdvancedSliderElements/storefront/layout/meta.html.twig""@NetzpBlog6/storefront/layout/meta.html.twig"2);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 5
  54.     public function block_layout_head_meta_tags_general($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_general"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_general"));
  61.         // line 6
  62.         echo "    ";
  63.         $this->displayParentBlock("layout_head_meta_tags_general"$context$blocks);
  64.         echo "
  65.     <link rel=\"alternate\"
  66.           type=\"application/rss+xml\"
  67.           title=\"";
  68.         // line 9
  69.         echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("netzp.blog.feed.metatitle"), "html"nulltrue);
  70.         echo "\"
  71.           href=\"";
  72.         // line 10
  73.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse10), "get", [=> "sw-sales-channel-base-url"], "method"falsefalsefalse10), "html"nulltrue);
  74.         echo "/blog.rss\" />
  75. ";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     // line 13
  82.     public function block_layout_head_meta_tags_opengraph($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  89.         // line 14
  90.         echo "    ";
  91.         if ((($context["activeRoute"] ?? null) == "frontend.blog.post")) {
  92.             // line 15
  93.             echo "        <meta property=\"og:type\"
  94.               content=\"website\"/>
  95.         <meta property=\"og:site_name\"
  96.               content=\"";
  97.             // line 18
  98.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["basicConfig"] ?? null), "shopName", [], "any"falsefalsefalse18), "html"nulltrue);
  99.             echo "\"/>
  100.         <meta property=\"og:title\"
  101.               content=\"";
  102.             // line 20
  103.             echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse20), "metatitle", [], "any"falsefalsefalse20)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse20), "metatitle", [], "any"falsefalsefalse20)) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse20), "title", [], "any"falsefalsefalse20))), "html"nulltrue);
  104.             echo "\"/>
  105.         <meta property=\"og:description\"
  106.               content=\"";
  107.             // line 22
  108.             echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse22), "metadescription", [], "any"falsefalsefalse22)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse22), "metadescription", [], "any"falsefalsefalse22)) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse22), "teaser", [], "any"falsefalsefalse22))), "html"nulltrue);
  109.             echo "\"/>
  110.         ";
  111.             // line 24
  112.             if (($context["postThumb"] ?? null)) {
  113.                 // line 25
  114.                 echo "            <meta property=\"og:image\"
  115.                   content=\"";
  116.                 // line 26
  117.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["postThumb"] ?? null), "getUrl", [], "method"falsefalsefalse26), "html"nulltrue);
  118.                 echo "\"/>
  119.         ";
  120.             } else {
  121.                 // line 28
  122.                 echo "            <meta property=\"og:image\"
  123.                   content=\"";
  124.                 // line 29
  125.                 echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context"sw-logo-desktop"), "html"nulltrue);
  126.                 echo "\"/>
  127.         ";
  128.             }
  129.             // line 31
  130.             echo "
  131.         <meta name=\"twitter:card\"
  132.               content=\"summary\"/>
  133.         <meta name=\"twitter:site\"
  134.               content=\"";
  135.             // line 35
  136.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["basicConfig"] ?? null), "shopName", [], "any"falsefalsefalse35), "html"nulltrue);
  137.             echo "\"/>
  138.         <meta name=\"twitter:title\"
  139.               content=\"";
  140.             // line 37
  141.             echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse37), "metatitle", [], "any"falsefalsefalse37)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse37), "metatitle", [], "any"falsefalsefalse37)) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse37), "title", [], "any"falsefalsefalse37))), "html"nulltrue);
  142.             echo "\"/>
  143.         <meta name=\"twitter:description\"
  144.               content=\"";
  145.             // line 39
  146.             echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse39), "metadescription", [], "any"falsefalsefalse39)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse39), "metadescription", [], "any"falsefalsefalse39)) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse39), "teaser", [], "any"falsefalsefalse39))), "html"nulltrue);
  147.             echo "\"/>
  148.         ";
  149.             // line 40
  150.             if (($context["postThumb"] ?? null)) {
  151.                 // line 41
  152.                 echo "            <meta name=\"twitter:image\"
  153.                   content=\"";
  154.                 // line 42
  155.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["postThumb"] ?? null), "getUrl", [], "method"falsefalsefalse42), "html"nulltrue);
  156.                 echo "\"/>
  157.         ";
  158.             } else {
  159.                 // line 44
  160.                 echo "            <meta property=\"og:image\"
  161.                   content=\"";
  162.                 // line 45
  163.                 echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context"sw-logo-desktop"), "html"nulltrue);
  164.                 echo "\"/>
  165.         ";
  166.             }
  167.             // line 47
  168.             echo "    ";
  169.         } else {
  170.             // line 48
  171.             echo "        ";
  172.             $this->displayParentBlock("layout_head_meta_tags_opengraph"$context$blocks);
  173.             echo "
  174.     ";
  175.         }
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.     }
  181.     // line 52
  182.     public function block_layout_head_meta_tags_schema_webpage($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_schema_webpage"));
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_schema_webpage"));
  189.         // line 53
  190.         echo "    ";
  191.         $this->displayParentBlock("layout_head_meta_tags_schema_webpage"$context$blocks);
  192.         echo "
  193.     ";
  194.         // line 54
  195.         if ((($context["activeRoute"] ?? null) == "frontend.blog.post")) {
  196.             // line 55
  197.             echo "        <script type=\"application/ld+json\">
  198.             {
  199.                 \"@context\": \"https://schema.org\",
  200.                 \"@type\": \"BlogPosting\",
  201.                 \"headline\": \"";
  202.             // line 59
  203.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse59), "title", [], "any"falsefalsefalse59), "html"nulltrue);
  204.             echo "\",
  205.                 \"url\": \"";
  206.             // line 60
  207.             echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.blog.post", ["postId" => sw_get_attribute($this->env$this->source, ($context["post"] ?? null), "id", [], "any"falsefalsefalse60)]), "html"nulltrue);
  208.             echo "\",
  209.                 \"datePublished\": \"";
  210.             // line 61
  211.             echo sw_escape_filter($this->envtwig_date_format_filter($this->envsw_get_attribute($this->env$this->source, ($context["post"] ?? null), "createdAt", [], "any"falsefalsefalse61), "Y-m-d"), "html"nulltrue);
  212.             echo "\",
  213.                 \"dateCreated\": \"";
  214.             // line 62
  215.             echo sw_escape_filter($this->envtwig_date_format_filter($this->envsw_get_attribute($this->env$this->source, ($context["post"] ?? null), "createdAt", [], "any"falsefalsefalse62), "Y-m-d"), "html"nulltrue);
  216.             echo "\",
  217.                 \"dateModified\": \"";
  218.             // line 63
  219.             echo sw_escape_filter($this->envtwig_date_format_filter($this->envsw_get_attribute($this->env$this->source, ($context["post"] ?? null), "updatedAt", [], "any"falsefalsefalse63), "Y-m-d"), "html"nulltrue);
  220.             echo "\",
  221.                 \"description\": \"";
  222.             // line 64
  223.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["post"] ?? null), "translated", [], "any"falsefalsefalse64), "teaser", [], "any"falsefalsefalse64), "html"nulltrue);
  224.             echo "\",
  225.                 ";
  226.             // line 65
  227.             if ((twig_length_filter($this->envsw_get_attribute($this->env$this->source, ($context["post"] ?? null), "tags", [], "any"falsefalsefalse65)) > 0)) {
  228.                 echo "\"keywords\": [
  229.                     ";
  230.                 // line 66
  231.                 $context['_parent'] = $context;
  232.                 $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["post"] ?? null), "tags", [], "any"falsefalsefalse66));
  233.                 $context['loop'] = [
  234.                   'parent' => $context['_parent'],
  235.                   'index0' => 0,
  236.                   'index'  => 1,
  237.                   'first'  => true,
  238.                 ];
  239.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  240.                     $length count($context['_seq']);
  241.                     $context['loop']['revindex0'] = $length 1;
  242.                     $context['loop']['revindex'] = $length;
  243.                     $context['loop']['length'] = $length;
  244.                     $context['loop']['last'] = === $length;
  245.                 }
  246.                 foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  247.                     echo "\"";
  248.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsefalse66), "html"nulltrue);
  249.                     echo "\"";
  250.                     if ( !sw_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse66)) {
  251.                         echo ", ";
  252.                     }
  253.                     ++$context['loop']['index0'];
  254.                     ++$context['loop']['index'];
  255.                     $context['loop']['first'] = false;
  256.                     if (isset($context['loop']['length'])) {
  257.                         --$context['loop']['revindex0'];
  258.                         --$context['loop']['revindex'];
  259.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  260.                     }
  261.                 }
  262.                 $_parent $context['_parent'];
  263.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  264.                 $context array_intersect_key($context$_parent) + $_parent;
  265.                 // line 67
  266.                 echo "
  267.                 ],";
  268.             }
  269.             // line 69
  270.             echo "
  271.                 ";
  272.             // line 70
  273.             if (($context["postThumb"] ?? null)) {
  274.                 echo "\"image\": \"";
  275.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["postThumb"] ?? null), "getUrl", [], "method"falsefalsefalse70), "html"nulltrue);
  276.                 echo "\",";
  277.             }
  278.             // line 71
  279.             echo "
  280.                 ";
  281.             // line 72
  282.             if (sw_get_attribute($this->env$this->source, ($context["post"] ?? null), "author", [], "any"falsefalsefalse72)) {
  283.                 // line 73
  284.                 echo "
  285.                 \"author\": {
  286.                     \"@type\": \"Person\",
  287.                     \"name\": \"";
  288.                 // line 76
  289.                 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["post"] ?? null), "author", [], "any"falsefalsefalse76), "translated", [], "any"falsefalsefalse76), "name", [], "any"falsefalsefalse76), "html"nulltrue);
  290.                 echo "\"
  291.                     ";
  292.                 // line 77
  293.                 if (($context["authorThumb"] ?? null)) {
  294.                     echo ", \"image\": \"";
  295.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["authorThumb"] ?? null), "getUrl", [], "method"falsefalsefalse77), "html"nulltrue);
  296.                     echo "\"";
  297.                 }
  298.                 // line 78
  299.                 echo "
  300.                 },
  301.                 ";
  302.             }
  303.             // line 81
  304.             echo "
  305.                 \"publisher\": {
  306.                     \"@type\": \"Organization\",
  307.                     \"name\": \"";
  308.             // line 84
  309.             echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.shopName"), "html"nulltrue);
  310.             echo "\",
  311.                     \"url\": \"";
  312.             // line 85
  313.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.home.page");
  314.             echo "\",
  315.                     \"logo\": {
  316.                         \"@type\": \"ImageObject\",
  317.                         \"url\": \"";
  318.             // line 88
  319.             echo sw_escape_filter($this->env$this->extensions['FourtwosixWebpImageConverter\Decorators\Services\UrlEncodingTwigFilterDecorator']->encodeUrl($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context"sw-logo-desktop")), "html"nulltrue);
  320.             echo "\"
  321.                     }
  322.                 }
  323.             }
  324.         </script>
  325.     ";
  326.         }
  327.         
  328.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  329.         
  330.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  331.     }
  332.     public function getTemplateName()
  333.     {
  334.         return "@NetzpBlog6/storefront/layout/meta.html.twig";
  335.     }
  336.     public function isTraitable()
  337.     {
  338.         return false;
  339.     }
  340.     public function getDebugInfo()
  341.     {
  342.         return array (  342 => 88,  336 => 85,  332 => 84,  327 => 81,  322 => 78,  316 => 77,  312 => 76,  307 => 73,  305 => 72,  302 => 71,  296 => 70,  293 => 69,  289 => 67,  254 => 66,  250 => 65,  246 => 64,  242 => 63,  238 => 62,  234 => 61,  230 => 60,  226 => 59,  220 => 55,  218 => 54,  213 => 53,  203 => 52,  189 => 48,  186 => 47,  181 => 45,  178 => 44,  173 => 42,  170 => 41,  168 => 40,  164 => 39,  159 => 37,  154 => 35,  148 => 31,  143 => 29,  140 => 28,  135 => 26,  132 => 25,  130 => 24,  125 => 22,  120 => 20,  115 => 18,  110 => 15,  107 => 14,  97 => 13,  85 => 10,  81 => 9,  74 => 6,  64 => 5,  53 => 2,  51 => 3,  37 => 2,);
  343.     }
  344.     public function getSourceContext()
  345.     {
  346.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  347. {% set postThumb = post.image.getThumbnails() ? post.image.getThumbnails()|filter(t => (t.getHeight() <= 500))|first : null %}
  348. {% set authorThumb = post.author.image.getThumbnails() ? post.author.image.getThumbnails()|filter(t => (t.getHeight() <= 500))|first : null %}
  349. {% block layout_head_meta_tags_general %}
  350.     {{ parent() }}
  351.     <link rel=\"alternate\"
  352.           type=\"application/rss+xml\"
  353.           title=\"{{ \"netzp.blog.feed.metatitle\"|trans }}\"
  354.           href=\"{{ app.request.get('sw-sales-channel-base-url') }}/blog.rss\" />
  355. {% endblock %}
  356. {% block layout_head_meta_tags_opengraph %}
  357.     {% if activeRoute == 'frontend.blog.post' %}
  358.         <meta property=\"og:type\"
  359.               content=\"website\"/>
  360.         <meta property=\"og:site_name\"
  361.               content=\"{{ basicConfig.shopName }}\"/>
  362.         <meta property=\"og:title\"
  363.               content=\"{{ post.translated.metatitle ? post.translated.metatitle : post.translated.title }}\"/>
  364.         <meta property=\"og:description\"
  365.               content=\"{{ post.translated.metadescription ? post.translated.metadescription : post.translated.teaser }}\"/>
  366.         {% if(postThumb) %}
  367.             <meta property=\"og:image\"
  368.                   content=\"{{ postThumb.getUrl() }}\"/>
  369.         {% else %}
  370.             <meta property=\"og:image\"
  371.                   content=\"{{ theme_config('sw-logo-desktop') }}\"/>
  372.         {% endif %}
  373.         <meta name=\"twitter:card\"
  374.               content=\"summary\"/>
  375.         <meta name=\"twitter:site\"
  376.               content=\"{{ basicConfig.shopName }}\"/>
  377.         <meta name=\"twitter:title\"
  378.               content=\"{{ post.translated.metatitle ? post.translated.metatitle : post.translated.title  }}\"/>
  379.         <meta name=\"twitter:description\"
  380.               content=\"{{ post.translated.metadescription ? post.translated.metadescription : post.translated.teaser }}\"/>
  381.         {% if(postThumb) %}
  382.             <meta name=\"twitter:image\"
  383.                   content=\"{{ postThumb.getUrl() }}\"/>
  384.         {% else %}
  385.             <meta property=\"og:image\"
  386.                   content=\"{{ theme_config('sw-logo-desktop') }}\"/>
  387.         {% endif %}
  388.     {% else %}
  389.         {{ parent() }}
  390.     {% endif %}
  391. {% endblock %}
  392. {% block layout_head_meta_tags_schema_webpage %}
  393.     {{ parent() }}
  394.     {% if activeRoute == 'frontend.blog.post' %}
  395.         <script type=\"application/ld+json\">
  396.             {
  397.                 \"@context\": \"https://schema.org\",
  398.                 \"@type\": \"BlogPosting\",
  399.                 \"headline\": \"{{ post.translated.title }}\",
  400.                 \"url\": \"{{ seoUrl('frontend.blog.post', { postId: post.id }) }}\",
  401.                 \"datePublished\": \"{{ post.createdAt|date('Y-m-d') }}\",
  402.                 \"dateCreated\": \"{{ post.createdAt|date('Y-m-d') }}\",
  403.                 \"dateModified\": \"{{ post.updatedAt|date('Y-m-d') }}\",
  404.                 \"description\": \"{{ post.translated.teaser }}\",
  405.                 {% if post.tags|length >0 %}\"keywords\": [
  406.                     {% for tag in post.tags %}\"{{ tag.name }}\"{% if not loop.last %}, {% endif %}{% endfor %}
  407.                 ],{% endif %}
  408.                 {% if postThumb %}\"image\": \"{{ postThumb.getUrl() }}\",{% endif %}
  409.                 {% if post.author %}
  410.                 \"author\": {
  411.                     \"@type\": \"Person\",
  412.                     \"name\": \"{{ post.author.translated.name }}\"
  413.                     {% if authorThumb %}, \"image\": \"{{ authorThumb.getUrl() }}\"{% endif %}
  414.                 },
  415.                 {% endif %}
  416.                 \"publisher\": {
  417.                     \"@type\": \"Organization\",
  418.                     \"name\": \"{{ config('core.basicInformation.shopName') }}\",
  419.                     \"url\": \"{{ seoUrl('frontend.home.page') }}\",
  420.                     \"logo\": {
  421.                         \"@type\": \"ImageObject\",
  422.                         \"url\": \"{{ theme_config('sw-logo-desktop')|sw_encode_url }}\"
  423.                     }
  424.                 }
  425.             }
  426.         </script>
  427.     {% endif %}
  428. {% endblock %}
  429. ""@NetzpBlog6/storefront/layout/meta.html.twig""/var/www/geuther_staging/custom/plugins/NetzpBlog6/src/Resources/views/storefront/layout/meta.html.twig");
  430.     }
  431. }