var/cache/dev_h35c9e4fa64367e5a564f83803cfdec08/twig/49/49e1ddf411585ee83d03d60a70a383b77f36db67815fc14d90e50d82ba946470.php line 41

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. /* @MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig */
  16. class __TwigTemplate_c455f809cc238698d25bc22130f33eb5 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'layout_head_meta_tags_opengraph' => [$this'block_layout_head_meta_tags_opengraph'],
  26.             'layout_head_canonical' => [$this'block_layout_head_canonical'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@SwagPayPal/storefront/layout/meta.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig"));
  41.         $this->parent $this->loadTemplate("@SwagPayPal/storefront/layout/meta.html.twig""@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_layout_head_meta_tags_opengraph($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  56.         // line 4
  57.         echo "    <meta property=\"og:type\"
  58.           content=\"article\"/>
  59.     <meta property=\"og:site_name\"
  60.           content=\"";
  61.         // line 7
  62.         echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.shopName"), "html"nulltrue);
  63.         echo "\"/>
  64.     <meta property=\"og:url\"
  65.           content=\"";
  66.         // line 9
  67.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("moorl.magazine.article", ["magazineArticleId" => sw_get_attribute($this->env$this->source, ($context["article"] ?? null), "id", [], "any"falsefalsefalse9)]), "html"nulltrue);
  68.         echo "\"/>
  69.     <meta property=\"og:title\"
  70.           content=\"";
  71.         // line 11
  72.         echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse11), "metaTitle", [], "any"falsefalsefalse11)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse11), "metaTitle", [], "any"falsefalsefalse11)) : (($context["metaTitle"] ?? null))), "html"nulltrue);
  73.         echo "\"/>
  74.     <meta property=\"og:description\"
  75.           content=\"";
  76.         // line 13
  77.         echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse13), "metaDescription", [], "any"falsefalsefalse13)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse13), "metaDescription", [], "any"falsefalsefalse13)) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse13), "teaser", [], "any"falsefalsefalse13))), "html"nulltrue);
  78.         echo "\"/>
  79.     <meta property=\"og:image\"
  80.           content=\"";
  81.         // line 15
  82.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "media", [], "any"falsefalsefalse15), "url", [], "any"falsefalsefalse15), "html"nulltrue);
  83.         echo "\"/>
  84.     <meta name=\"twitter:card\"
  85.           content=\"article\"/>
  86.     <meta name=\"twitter:site\"
  87.           content=\"";
  88.         // line 20
  89.         echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.shopName"), "html"nulltrue);
  90.         echo "\"/>
  91.     <meta name=\"twitter:title\"
  92.           content=\"";
  93.         // line 22
  94.         echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse22), "metaTitle", [], "any"falsefalsefalse22)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse22), "metaTitle", [], "any"falsefalsefalse22)) : (($context["metaTitle"] ?? null))), "html"nulltrue);
  95.         echo "\"/>
  96.     <meta name=\"twitter:description\"
  97.           content=\"";
  98.         // line 24
  99.         echo sw_escape_filter($this->env, ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse24), "metaDescription", [], "any"falsefalsefalse24)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse24), "metaDescription", [], "any"falsefalsefalse24)) : (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "translated", [], "any"falsefalsefalse24), "teaser", [], "any"falsefalsefalse24))), "html"nulltrue);
  100.         echo "\"/>
  101.     <meta name=\"twitter:image\"
  102.           content=\"";
  103.         // line 26
  104.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["article"] ?? null), "media", [], "any"falsefalsefalse26), "url", [], "any"falsefalsefalse26), "html"nulltrue);
  105.         echo "\"/>
  106. ";
  107.         
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.     }
  112.     // line 29
  113.     public function block_layout_head_canonical($context, array $blocks = [])
  114.     {
  115.         $macros $this->macros;
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  120.         // line 30
  121.         echo "    <link rel=\"canonical\" href=\"";
  122.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("moorl.magazine.article", ["magazineArticleId" => sw_get_attribute($this->env$this->source, ($context["article"] ?? null), "id", [], "any"falsefalsefalse30)]), "html"nulltrue);
  123.         echo "\" />
  124. ";
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.     }
  130.     public function getTemplateName()
  131.     {
  132.         return "@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig";
  133.     }
  134.     public function isTraitable()
  135.     {
  136.         return false;
  137.     }
  138.     public function getDebugInfo()
  139.     {
  140.         return array (  139 => 30,  129 => 29,  117 => 26,  112 => 24,  107 => 22,  102 => 20,  94 => 15,  89 => 13,  84 => 11,  79 => 9,  74 => 7,  69 => 4,  59 => 3,  36 => 2,);
  141.     }
  142.     public function getSourceContext()
  143.     {
  144.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  145. {% block layout_head_meta_tags_opengraph %}
  146.     <meta property=\"og:type\"
  147.           content=\"article\"/>
  148.     <meta property=\"og:site_name\"
  149.           content=\"{{ config('core.basicInformation.shopName') }}\"/>
  150.     <meta property=\"og:url\"
  151.           content=\"{{ seoUrl('moorl.magazine.article', { magazineArticleId: article.id }) }}\"/>
  152.     <meta property=\"og:title\"
  153.           content=\"{{ article.translated.metaTitle ? article.translated.metaTitle : metaTitle }}\"/>
  154.     <meta property=\"og:description\"
  155.           content=\"{{ article.translated.metaDescription ?: article.translated.teaser }}\"/>
  156.     <meta property=\"og:image\"
  157.           content=\"{{ article.media.url }}\"/>
  158.     <meta name=\"twitter:card\"
  159.           content=\"article\"/>
  160.     <meta name=\"twitter:site\"
  161.           content=\"{{ config('core.basicInformation.shopName') }}\"/>
  162.     <meta name=\"twitter:title\"
  163.           content=\"{{ article.translated.metaTitle ? article.translated.metaTitle : metaTitle }}\"/>
  164.     <meta name=\"twitter:description\"
  165.           content=\"{{ article.translated.metaDescription ?: article.translated.teaser }}\"/>
  166.     <meta name=\"twitter:image\"
  167.           content=\"{{ article.media.url }}\"/>
  168. {% endblock %}
  169. {% block layout_head_canonical %}
  170.     <link rel=\"canonical\" href=\"{{ seoUrl('moorl.magazine.article', { magazineArticleId: article.id }) }}\" />
  171. {% endblock %}
  172. ""@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig""/var/customers/webs/kew/htdocs6/vendor/store.shopware.com/moorlmagazine/src/Resources/views/plugin/moorl-magazine/layout/article.html.twig");
  173.     }
  174. }