<?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;
/* @GrimmTheme/storefront/layout/meta.html.twig */
class __TwigTemplate_f14f55caca6c212dfa80a8ddf12c8b89 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'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", "@GrimmTheme/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", "@GrimmTheme/storefront/layout/meta.html.twig"));
$this->parent = $this->loadTemplate("@DtgsGoogleTagManagerSw6/storefront/layout/meta.html.twig", "@GrimmTheme/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_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 4
echo " ";
if (($context["cbaxModulManufacturers"] ?? null)) {
// line 5
echo " ";
if ((sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any", false, false, false, 5) == "index")) {
// line 6
echo " ";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.metaTitle"), "html", null, true);
echo "
";
} else {
// line 8
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any", false, false, false, 8), "translated", [], "any", false, false, false, 8), "customFields", [], "any", false, false, false, 8), "cbaxManufacturerMetaTitle", [], "any", false, false, false, 8)) {
// line 9
echo " ";
echo sw_escape_filter($this->env, twig_trim_filter(twig_striptags(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any", false, false, false, 9), "translated", [], "any", false, false, false, 9), "customFields", [], "any", false, false, false, 9), "cbaxManufacturerMetaTitle", [], "any", false, false, false, 9))), "html", null, true);
echo "
";
} else {
// line 11
echo " ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any", false, false, false, 11), "translated", [], "any", false, false, false, 11), "name", [], "any", false, false, false, 11), "html", null, true);
echo " | ";
echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "
";
}
// line 13
echo " ";
}
// line 14
echo " ";
} else {
// line 15
echo " ";
$this->displayParentBlock("layout_head_title_inner", $context, $blocks);
echo "
";
}
$___internal_parse_1_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 3
echo twig_spaceless($___internal_parse_1_);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@GrimmTheme/storefront/layout/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 111 => 3, 104 => 15, 101 => 14, 98 => 13, 90 => 11, 84 => 9, 81 => 8, 75 => 6, 72 => 5, 69 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_title_inner %}{% apply spaceless %}
{% if cbaxModulManufacturers %}
{% if cbaxModulManufacturers.page == \"index\" %}
{{ 'cbaxManufacturer.page.index.metaTitle' | trans }}
{% else %}
{% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle %}
{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle|striptags|trim }}
{% else %}
{{ cbaxModulManufacturers.manufacturer.translated.name }} | {{ metaTitle }}
{% endif %}
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endapply %}{% endblock %}
", "@GrimmTheme/storefront/layout/meta.html.twig", "/var/www/staging1.grimm-gastrobedarf.de/custom/plugins/GrimmTheme/src/Resources/views/storefront/layout/meta.html.twig");
}
}