var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/e1/e1cba895bb3229f404b5be4ae55c342759e9a7ceb8d2ffb9fd733713b7197511.php line 62

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