<?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;
/* @HuebertSeoFaq/storefront/layout/meta.html.twig */
class __TwigTemplate_ccf0ab200f78b49182dba79459324ade extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_meta_tags' => [$this, 'block_layout_head_meta_tags'],
'layout_head_title_inner' => [$this, 'block_layout_head_title_inner'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@DtgsGoogleTagManagerSw6/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", "@HuebertSeoFaq/storefront/layout/meta.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@HuebertSeoFaq/storefront/layout/meta.html.twig"));
$this->parent = $this->loadTemplate("@DtgsGoogleTagManagerSw6/storefront/layout/meta.html.twig", "@HuebertSeoFaq/storefront/layout/meta.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($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"));
$__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"));
// line 4
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 4)) {
// line 5
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 5), "metaDescription", [], "any", false, false, false, 5)) {
// line 6
echo " ";
$context["metaDescription"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 6), "metaDescription", [], "any", false, false, false, 6);
// line 7
echo " ";
} else {
// line 8
echo " ";
$context["metaDescription"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "HuebertSeoFaq.config.faqMetaDescription");
// line 9
echo " ";
}
// line 10
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 10), "metaTitle", [], "any", false, false, false, 10)) {
// line 11
echo " ";
$context["metaTitle"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 11), "metaTitle", [], "any", false, false, false, 11);
// line 12
echo " ";
} else {
// line 13
echo " ";
$context["metaTitle"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "HuebertSeoFaq.config.faqMetaTitle");
// line 14
echo " ";
}
// line 15
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 15), "metaKeywords", [], "any", false, false, false, 15)) {
// line 16
echo " ";
$context["metaKeywords"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 16), "metaKeywords", [], "any", false, false, false, 16);
// line 17
echo " ";
}
// line 18
echo " ";
} elseif ((($context["controllerName"] ?? null) == "SeoFaq")) {
// line 19
echo " ";
$context["metaDescription"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "HuebertSeoFaq.config.faqMetaDescription");
// line 20
echo " <link rel=\"canonical\" href=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaInformation", [], "any", false, false, false, 20), "canonical", [], "any", false, false, false, 20), "html", null, true);
echo "\"/>
";
}
// line 22
echo " ";
$this->displayParentBlock("layout_head_meta_tags", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 25
public function block_layout_head_title_inner($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_title_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_title_inner"));
ob_start();
// line 26
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 26), "metaTitle", [], "any", false, false, false, 26)) {
// line 27
echo " ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 27), "metaTitle", [], "any", false, false, false, 27), "html", null, true);
echo "
";
} elseif (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 28
($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 28), "question", [], "any", false, false, false, 28)) {
// line 29
echo " ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 29), "question", [], "any", false, false, false, 29), "html", null, true);
echo "
";
} elseif ((( // line 30
($context["controllerName"] ?? null) == "SeoFaq") && (sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "questionSpecific", [], "any", false, false, false, 30) == null))) {
// line 31
echo " ";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "HuebertSeoFaq.config.faqMetaTitle"), "html", null, true);
echo "
";
} else {
// line 33
echo " ";
echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "
";
}
$___internal_parse_2_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 25
echo twig_spaceless($___internal_parse_2_);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@HuebertSeoFaq/storefront/layout/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 177 => 25, 170 => 33, 164 => 31, 162 => 30, 157 => 29, 155 => 28, 150 => 27, 147 => 26, 136 => 25, 123 => 22, 117 => 20, 114 => 19, 111 => 18, 108 => 17, 105 => 16, 102 => 15, 99 => 14, 96 => 13, 93 => 12, 90 => 11, 87 => 10, 84 => 9, 81 => 8, 78 => 7, 75 => 6, 72 => 5, 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 %}
{% if page.questionSpecific %}
{% if page.questionSpecific.metaDescription %}
{% set metaDescription = page.questionSpecific.metaDescription %}
{% else %}
{% set metaDescription = config('HuebertSeoFaq.config.faqMetaDescription') %}
{% endif %}
{% if page.questionSpecific.metaTitle %}
{% set metaTitle = page.questionSpecific.metaTitle %}
{% else %}
{% set metaTitle = config('HuebertSeoFaq.config.faqMetaTitle') %}
{% endif %}
{% if page.questionSpecific.metaKeywords %}
{% set metaKeywords = page.questionSpecific.metaKeywords %}
{% endif %}
{% elseif controllerName == \"SeoFaq\" %}
{% set metaDescription = config('HuebertSeoFaq.config.faqMetaDescription') %}
<link rel=\"canonical\" href=\"{{ page.metaInformation.canonical }}\"/>
{% endif %}
{{ parent() }}
{% endblock %}
{% block layout_head_title_inner %}{% apply spaceless %}
{% if page.questionSpecific.metaTitle %}
{{ page.questionSpecific.metaTitle }}
{% elseif page.questionSpecific.question %}
{{ page.questionSpecific.question }}
{% elseif controllerName == \"SeoFaq\" and page.questionSpecific == null%}
{{ config('HuebertSeoFaq.config.faqMetaTitle')}}
{% else %}
{{ metaTitle }}
{% endif %}
{% endapply %}{% endblock %}
", "@HuebertSeoFaq/storefront/layout/meta.html.twig", "/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/store.shopware.com/huebertseofaq/src/Resources/views/storefront/layout/meta.html.twig");
}
}