<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig */
class __TwigTemplate_c455f809cc238698d25bc22130f33eb5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_meta_tags_opengraph' => [$this, 'block_layout_head_meta_tags_opengraph'],
'layout_head_canonical' => [$this, 'block_layout_head_canonical'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@SwagPayPal/storefront/layout/meta.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig"));
$this->parent = $this->loadTemplate("@SwagPayPal/storefront/layout/meta.html.twig", "@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_layout_head_meta_tags_opengraph($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_opengraph"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_opengraph"));
// line 4
echo " <meta property=\"og:type\"
content=\"article\"/>
<meta property=\"og:site_name\"
content=\"";
// line 7
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.basicInformation.shopName"), "html", null, true);
echo "\"/>
<meta property=\"og:url\"
content=\"";
// line 9
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", false, false, false, 9)]), "html", null, true);
echo "\"/>
<meta property=\"og:title\"
content=\"";
// line 11
echo sw_escape_filter($this->env, ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 11), "metaTitle", [], "any", false, false, false, 11)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 11), "metaTitle", [], "any", false, false, false, 11)) : (($context["metaTitle"] ?? null))), "html", null, true);
echo "\"/>
<meta property=\"og:description\"
content=\"";
// line 13
echo sw_escape_filter($this->env, ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 13), "metaDescription", [], "any", false, false, false, 13)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 13), "metaDescription", [], "any", false, false, false, 13)) : (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 13), "teaser", [], "any", false, false, false, 13))), "html", null, true);
echo "\"/>
<meta property=\"og:image\"
content=\"";
// line 15
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "media", [], "any", false, false, false, 15), "url", [], "any", false, false, false, 15), "html", null, true);
echo "\"/>
<meta name=\"twitter:card\"
content=\"article\"/>
<meta name=\"twitter:site\"
content=\"";
// line 20
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.basicInformation.shopName"), "html", null, true);
echo "\"/>
<meta name=\"twitter:title\"
content=\"";
// line 22
echo sw_escape_filter($this->env, ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 22), "metaTitle", [], "any", false, false, false, 22)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 22), "metaTitle", [], "any", false, false, false, 22)) : (($context["metaTitle"] ?? null))), "html", null, true);
echo "\"/>
<meta name=\"twitter:description\"
content=\"";
// line 24
echo sw_escape_filter($this->env, ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 24), "metaDescription", [], "any", false, false, false, 24)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 24), "metaDescription", [], "any", false, false, false, 24)) : (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "translated", [], "any", false, false, false, 24), "teaser", [], "any", false, false, false, 24))), "html", null, true);
echo "\"/>
<meta name=\"twitter:image\"
content=\"";
// line 26
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["article"] ?? null), "media", [], "any", false, false, false, 26), "url", [], "any", false, false, false, 26), "html", null, true);
echo "\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 29
public function block_layout_head_canonical($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_canonical"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_canonical"));
// line 30
echo " <link rel=\"canonical\" href=\"";
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", false, false, false, 30)]), "html", null, true);
echo "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@MoorlMagazine/plugin/moorl-magazine/layout/article.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_meta_tags_opengraph %}
<meta property=\"og:type\"
content=\"article\"/>
<meta property=\"og:site_name\"
content=\"{{ config('core.basicInformation.shopName') }}\"/>
<meta property=\"og:url\"
content=\"{{ seoUrl('moorl.magazine.article', { magazineArticleId: article.id }) }}\"/>
<meta property=\"og:title\"
content=\"{{ article.translated.metaTitle ? article.translated.metaTitle : metaTitle }}\"/>
<meta property=\"og:description\"
content=\"{{ article.translated.metaDescription ?: article.translated.teaser }}\"/>
<meta property=\"og:image\"
content=\"{{ article.media.url }}\"/>
<meta name=\"twitter:card\"
content=\"article\"/>
<meta name=\"twitter:site\"
content=\"{{ config('core.basicInformation.shopName') }}\"/>
<meta name=\"twitter:title\"
content=\"{{ article.translated.metaTitle ? article.translated.metaTitle : metaTitle }}\"/>
<meta name=\"twitter:description\"
content=\"{{ article.translated.metaDescription ?: article.translated.teaser }}\"/>
<meta name=\"twitter:image\"
content=\"{{ article.media.url }}\"/>
{% endblock %}
{% block layout_head_canonical %}
<link rel=\"canonical\" href=\"{{ seoUrl('moorl.magazine.article', { magazineArticleId: article.id }) }}\" />
{% endblock %}
", "@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");
}
}