var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/0c/0c2f43daeecb77ead3d7d30d6d79ee526f25738a8a619297cecfb986788d9ebb.php line 43

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. /* @SasBlogModule/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_b4cd5bb762dc7e87dfd7171c17359e5844242e993e1adb4a1758b929c9bef477 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' => [$this'block_layout_head_meta_tags'],
  26.             'layout_head_meta_tags_description' => [$this'block_layout_head_meta_tags_description'],
  27.             'layout_head_title' => [$this'block_layout_head_title'],
  28.             'layout_head_meta_tags_schema_webpage' => [$this'block_layout_head_meta_tags_schema_webpage'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 2
  34.         return "@MoorlFoundation/storefront/layout/meta.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SasBlogModule/storefront/layout/meta.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SasBlogModule/storefront/layout/meta.html.twig"));
  43.         $this->parent $this->loadTemplate("@MoorlFoundation/storefront/layout/meta.html.twig""@SasBlogModule/storefront/layout/meta.html.twig"2);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_layout_head_meta_tags($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags"));
  58.         // line 4
  59.         echo "    ";
  60.         if ((($context["activeRoute"] ?? null) == "sas.frontend.blog.detail")) {
  61.             // line 5
  62.             echo "        <link rel=\"canonical\" href=\"";
  63.             echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("sas.frontend.blog.detail", ["articleId" => sw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "id", [], "any"falsefalsefalse5)]), "html"nulltrue);
  64.             echo "\" />
  65.         ";
  66.             // line 6
  67.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6)) {
  68.                 // line 7
  69.                 echo "            ";
  70.                 $context["metaTitle"] = twig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse7), "metaTitle", [], "any"falsefalsefalse7)));
  71.                 // line 8
  72.                 echo "        ";
  73.             } else {
  74.                 // line 9
  75.                 echo "            ";
  76.                 $context["metaTitle"] = twig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse9), "title", [], "any"falsefalsefalse9)));
  77.                 // line 10
  78.                 echo "        ";
  79.             }
  80.             // line 11
  81.             echo "    ";
  82.         }
  83.         // line 12
  84.         echo "    ";
  85.         $this->displayParentBlock("layout_head_meta_tags"$context$blocks);
  86.         echo "
  87. ";
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.         
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  92.     }
  93.     // line 15
  94.     public function block_layout_head_meta_tags_description($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_description"));
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_description"));
  101.         if ((($context["activeRoute"] ?? null) == "sas.frontend.blog.detail")) {
  102.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse15), "metaDescription", [], "any"falsefalsefalse15)) {
  103.                 echo sw_escape_filter($this->envtwig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse15), "metaDescription", [], "any"falsefalsefalse15))), "html"nulltrue);
  104.             } else {
  105.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse15), "teaser", [], "any"falsefalsefalse15), "html"nulltrue);
  106.             }
  107.         } else {
  108.             $this->displayParentBlock("layout_head_meta_tags_description"$context$blocks);
  109.         }
  110.         
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  112.         
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  114.     }
  115.     // line 17
  116.     public function block_layout_head_title($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title"));
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title"));
  123.         // line 18
  124.         echo "    ";
  125.         if ((($context["activeRoute"] ?? null) == "sas.frontend.blog.detail")) {
  126.             // line 19
  127.             echo "        ";
  128.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse19), "metaTitle", [], "any"falsefalsefalse19)) {
  129.                 // line 20
  130.                 echo "            ";
  131.                 $context["metaTitle"] = twig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse20), "metaTitle", [], "any"falsefalsefalse20)));
  132.                 // line 21
  133.                 echo "        ";
  134.             } else {
  135.                 // line 22
  136.                 echo "            ";
  137.                 $context["metaTitle"] = twig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse22), "title", [], "any"falsefalsefalse22)));
  138.                 // line 23
  139.                 echo "        ";
  140.             }
  141.             // line 24
  142.             echo "    ";
  143.         }
  144.         // line 25
  145.         echo "
  146.     ";
  147.         // line 26
  148.         $this->displayParentBlock("layout_head_title"$context$blocks);
  149.         echo "
  150. ";
  151.         
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  153.         
  154.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  155.     }
  156.     // line 29
  157.     public function block_layout_head_meta_tags_schema_webpage($context, array $blocks = [])
  158.     {
  159.         $macros $this->macros;
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_schema_webpage"));
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_schema_webpage"));
  164.         // line 30
  165.         echo "    ";
  166.         $this->displayParentBlock("layout_head_meta_tags_schema_webpage"$context$blocks);
  167.         echo "
  168.     ";
  169.         // line 32
  170.         if ((($context["activeRoute"] ?? null) == "sas.frontend.blog.detail")) {
  171.             // line 33
  172.             echo "        <script type=\"application/ld+json\">
  173.             {
  174.                 \"@context\": \"https://schema.org\",
  175.                 \"@type\": \"BlogPosting\",
  176.                 \"headline\": \"";
  177.             // line 37
  178.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse37), "title", [], "any"falsefalsefalse37), "html"nulltrue);
  179.             echo "\",
  180.                 \"datePublished\": \"";
  181.             // line 38
  182.             echo sw_escape_filter($this->envtwig_date_format_filter($this->envsw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "publishedAt", [], "any"falsefalsefalse38)), "html"nulltrue);
  183.             echo "\",
  184.                 \"dateModified\": \"";
  185.             // line 39
  186.             echo sw_escape_filter($this->envtwig_date_format_filter($this->envsw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "updatedAt", [], "any"falsefalsefalse39)), "html"nulltrue);
  187.             echo "\",
  188.                 \"description\": \"";
  189.             // line 40
  190.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "translated", [], "any"falsefalsefalse40), "teaser", [], "any"falsefalsefalse40), "html"nulltrue);
  191.             echo "\",
  192.                 \"author\": {
  193.                     \"@type\": \"Person\",
  194.                     \"name\": \"";
  195.             // line 43
  196.             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["entry"] ?? null), "author", [], "any"falsefalsefalse43), "translated", [], "any"falsefalsefalse43), "name", [], "any"falsefalsefalse43), "html"nulltrue);
  197.             echo "\"
  198.                 },
  199.                 ";
  200.             // line 45
  201.             if (twig_length_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "media", [], "any"falsefalsefalse45), "thumbnails", [], "any"falsefalsefalse45), "elements", [], "any"falsefalsefalse45))) {
  202.                 // line 46
  203.                 echo "                \"image\":[";
  204.                 $context['_parent'] = $context;
  205.                 $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "media", [], "any"falsefalsefalse46), "thumbnails", [], "any"falsefalsefalse46), "elements", [], "any"falsefalsefalse46));
  206.                 $context['loop'] = [
  207.                   'parent' => $context['_parent'],
  208.                   'index0' => 0,
  209.                   'index'  => 1,
  210.                   'first'  => true,
  211.                 ];
  212.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  213.                     $length count($context['_seq']);
  214.                     $context['loop']['revindex0'] = $length 1;
  215.                     $context['loop']['revindex'] = $length;
  216.                     $context['loop']['length'] = $length;
  217.                     $context['loop']['last'] = === $length;
  218.                 }
  219.                 foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  220.                     echo "\"";
  221.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["item"], "url", [], "any"falsefalsefalse46), "html"nulltrue);
  222.                     echo "\"";
  223.                     echo ((sw_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse46)) ? ("") : (","));
  224.                     ++$context['loop']['index0'];
  225.                     ++$context['loop']['index'];
  226.                     $context['loop']['first'] = false;
  227.                     if (isset($context['loop']['length'])) {
  228.                         --$context['loop']['revindex0'];
  229.                         --$context['loop']['revindex'];
  230.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  231.                     }
  232.                 }
  233.                 $_parent $context['_parent'];
  234.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  235.                 $context array_intersect_key($context$_parent) + $_parent;
  236.                 echo "],";
  237.             }
  238.             // line 47
  239.             echo "                \"mainEntityOfPage\": {
  240.                     \"@type\": \"WebPage\",
  241.                     \"@id\": \"";
  242.             // line 49
  243.             echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("sas.frontend.blog.detail", ["articleId" => sw_get_attribute($this->env$this->source, ($context["entry"] ?? null), "id", [], "any"falsefalsefalse49)]), "html"nulltrue);
  244.             echo "\"
  245.                 },
  246.                  \"publisher\": {
  247.                     \"@type\": \"Organization\",
  248.                     \"name\": \"";
  249.             // line 53
  250.             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["shopware"] ?? null), "config", [], "any"falsefalsefalse53), "core", [], "any"falsefalsefalse53), "basicInformation", [], "any"falsefalsefalse53), "shopName", [], "any"falsefalsefalse53), "html"nulltrue);
  251.             echo "\",
  252.                     \"logo\": {
  253.                         \"@type\": \"ImageObject\",
  254.                         \"url\": \"";
  255.             // line 56
  256.             echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter']->encodeUrl((($__internal_compile_0 sw_get_attribute($this->env$this->source, ($context["shopware"] ?? null), "theme", [], "any"falsefalsefalse56)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["sw-logo-desktop"] ?? null) : null)), "html"nulltrue);
  257.             echo "\"
  258.                     }
  259.                 }
  260.             }
  261.         </script>
  262.     ";
  263.         }
  264.         
  265.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  266.         
  267.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  268.     }
  269.     public function getTemplateName()
  270.     {
  271.         return "@SasBlogModule/storefront/layout/meta.html.twig";
  272.     }
  273.     public function isTraitable()
  274.     {
  275.         return false;
  276.     }
  277.     public function getDebugInfo()
  278.     {
  279.         return array (  284 => 56,  278 => 53,  271 => 49,  267 => 47,  231 => 46,  229 => 45,  224 => 43,  218 => 40,  214 => 39,  210 => 38,  206 => 37,  200 => 33,  198 => 32,  192 => 30,  182 => 29,  170 => 26,  167 => 25,  164 => 24,  161 => 23,  158 => 22,  155 => 21,  152 => 20,  149 => 19,  146 => 18,  136 => 17,  109 => 15,  96 => 12,  93 => 11,  90 => 10,  87 => 9,  84 => 8,  81 => 7,  79 => 6,  74 => 5,  71 => 4,  61 => 3,  38 => 2,);
  280.     }
  281.     public function getSourceContext()
  282.     {
  283.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  284. {% block layout_head_meta_tags %}
  285.     {% if activeRoute == 'sas.frontend.blog.detail' %}
  286.         <link rel=\"canonical\" href=\"{{ seoUrl('sas.frontend.blog.detail', { articleId: entry.id }) }}\" />
  287.         {% if entry.translated.metaTitle %}
  288.             {% set metaTitle = entry.translated.metaTitle|striptags|trim %}
  289.         {% else %}
  290.             {% set metaTitle = entry.translated.title|striptags|trim %}
  291.         {% endif %}
  292.     {% endif %}
  293.     {{ parent() }}
  294. {% endblock %}
  295. {% block layout_head_meta_tags_description %}{% if activeRoute == 'sas.frontend.blog.detail' %}{% if entry.translated.metaDescription %}{{ entry.translated.metaDescription|striptags|trim }}{% else %}{{ entry.translated.teaser }}{% endif %}{% else %}{{ parent() }}{% endif %}{% endblock %}
  296. {% block layout_head_title %}
  297.     {% if activeRoute == 'sas.frontend.blog.detail' %}
  298.         {% if entry.translated.metaTitle %}
  299.             {% set metaTitle = entry.translated.metaTitle|striptags|trim %}
  300.         {% else %}
  301.             {% set metaTitle = entry.translated.title|striptags|trim %}
  302.         {% endif %}
  303.     {% endif %}
  304.     {{ parent() }}
  305. {% endblock %}
  306. {% block layout_head_meta_tags_schema_webpage %}
  307.     {{ parent() }}
  308.     {% if activeRoute == 'sas.frontend.blog.detail' %}
  309.         <script type=\"application/ld+json\">
  310.             {
  311.                 \"@context\": \"https://schema.org\",
  312.                 \"@type\": \"BlogPosting\",
  313.                 \"headline\": \"{{ entry.translated.title }}\",
  314.                 \"datePublished\": \"{{ entry.publishedAt|date }}\",
  315.                 \"dateModified\": \"{{ entry.updatedAt|date }}\",
  316.                 \"description\": \"{{ entry.translated.teaser }}\",
  317.                 \"author\": {
  318.                     \"@type\": \"Person\",
  319.                     \"name\": \"{{ entry.author.translated.name }}\"
  320.                 },
  321.                 {% if entry.media.thumbnails.elements|length %}
  322.                 \"image\":[{% for item in entry.media.thumbnails.elements %}\"{{ item.url }}\"{{ loop.last ? '' : ',' }}{% endfor %}],{% endif %}
  323.                 \"mainEntityOfPage\": {
  324.                     \"@type\": \"WebPage\",
  325.                     \"@id\": \"{{ seoUrl('sas.frontend.blog.detail', { articleId: entry.id }) }}\"
  326.                 },
  327.                  \"publisher\": {
  328.                     \"@type\": \"Organization\",
  329.                     \"name\": \"{{ shopware.config.core.basicInformation.shopName }}\",
  330.                     \"logo\": {
  331.                         \"@type\": \"ImageObject\",
  332.                         \"url\": \"{{ shopware.theme['sw-logo-desktop'] |sw_encode_url }}\"
  333.                     }
  334.                 }
  335.             }
  336.         </script>
  337.     {% endif %}
  338. {% endblock %}
  339. ""@SasBlogModule/storefront/layout/meta.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SasBlogModule/src/Resources/views/storefront/layout/meta.html.twig");
  340.     }
  341. }