<?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;
/* @CbaxModulManufacturers/storefront/layout/meta.html.twig */
class __TwigTemplate_dd6dc0f6284ba72c86058d0e79c34475 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_canonical' => [$this, 'block_layout_head_canonical'],
'layout_head_meta_tags_keywords' => [$this, 'block_layout_head_meta_tags_keywords'],
'layout_head_meta_tags_description' => [$this, 'block_layout_head_meta_tags_description'],
'layout_head_title_inner' => [$this, 'block_layout_head_title_inner'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@ProxaCheckoutTemplate/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", "@CbaxModulManufacturers/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", "@CbaxModulManufacturers/storefront/layout/meta.html.twig"));
$this->parent = $this->loadTemplate("@ProxaCheckoutTemplate/storefront/layout/meta.html.twig", "@CbaxModulManufacturers/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_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 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 " \t<link rel=\"canonical\" href=\"";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.cbax.manufacturer.index");
echo "\" />
";
} else {
// line 8
echo " <link rel=\"canonical\" href=\"";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.cbax.manufacturer.detail", ["cbaxManufacturerId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any", false, false, false, 8), "id", [], "any", false, false, false, 8)]), "html", null, true);
echo "\" />
";
}
// line 10
echo " ";
} else {
// line 11
echo " \t";
$this->displayParentBlock("layout_head_canonical", $context, $blocks);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_layout_head_meta_tags_keywords($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_keywords"));
$__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_keywords"));
ob_start();
// line 16
echo " ";
if (($context["cbaxModulManufacturers"] ?? null)) {
// line 17
echo " \t";
if ((sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any", false, false, false, 17) == "index")) {
// line 18
echo "\t\t\t";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.metaKeywords"), "html", null, true);
echo "
";
} else {
// line 20
echo "\t\t\t";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(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, 20), "translated", [], "any", false, false, false, 20), "customFields", [], "any", false, false, false, 20), "cbaxManufacturerMetaKeyword", [], "any", false, false, false, 20)))), "truncate", [0 => 160], "method", false, false, false, 20), "html", null, true);
echo "
";
}
// line 22
echo " ";
} else {
// line 23
echo " \t";
$this->displayParentBlock("layout_head_meta_tags_keywords", $context, $blocks);
echo "
";
}
$___internal_parse_4_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 15
echo twig_spaceless($___internal_parse_4_);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 27
public function block_layout_head_meta_tags_description($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_description"));
$__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_description"));
ob_start();
// line 28
echo " ";
if (($context["cbaxModulManufacturers"] ?? null)) {
// line 29
echo " \t";
if ((sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any", false, false, false, 29) == "index")) {
// line 30
echo "\t\t\t";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.metaDescription"), "html", null, true);
echo "
";
} else {
// line 32
echo " \t";
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, 32), "translated", [], "any", false, false, false, 32), "customFields", [], "any", false, false, false, 32), "cbaxManufacturerMetaDescription", [], "any", false, false, false, 32)) {
// line 33
echo " \t\t";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(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, 33), "translated", [], "any", false, false, false, 33), "customFields", [], "any", false, false, false, 33), "cbaxManufacturerMetaDescription", [], "any", false, false, false, 33)))), "truncate", [0 => 160], "method", false, false, false, 33), "html", null, true);
echo "
";
} else {
// line 35
echo " \t";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(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, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any", false, false, false, 35), "translated", [], "any", false, false, false, 35), "description", [], "any", false, false, false, 35)))), "truncate", [0 => 160], "method", false, false, false, 35), "html", null, true);
echo "
";
}
// line 37
echo " ";
}
// line 38
echo " ";
} else {
// line 39
echo " \t";
$this->displayParentBlock("layout_head_meta_tags_description", $context, $blocks);
echo "
";
}
$___internal_parse_5_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 27
echo twig_spaceless($___internal_parse_5_);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 43
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 44
echo " ";
if (($context["cbaxModulManufacturers"] ?? null)) {
// line 45
echo " \t";
if ((sw_get_attribute($this->env, $this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any", false, false, false, 45) == "index")) {
// line 46
echo "\t\t\t";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.allManufacturers"), "html", null, true);
echo " | ";
echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "
";
} else {
// line 48
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, 48), "translated", [], "any", false, false, false, 48), "customFields", [], "any", false, false, false, 48), "cbaxManufacturerMetaTitle", [], "any", false, false, false, 48)) {
// line 49
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, 49), "translated", [], "any", false, false, false, 49), "customFields", [], "any", false, false, false, 49), "cbaxManufacturerMetaTitle", [], "any", false, false, false, 49))), "html", null, true);
echo "
";
} else {
// line 51
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, 51), "translated", [], "any", false, false, false, 51), "name", [], "any", false, false, false, 51), "html", null, true);
echo " | ";
echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html", null, true);
echo "
";
}
// line 53
echo " ";
}
// line 54
echo " ";
} else {
// line 55
echo " \t";
$this->displayParentBlock("layout_head_title_inner", $context, $blocks);
echo "
";
}
$___internal_parse_6_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 43
echo twig_spaceless($___internal_parse_6_);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@CbaxModulManufacturers/storefront/layout/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 271 => 43, 264 => 55, 261 => 54, 258 => 53, 250 => 51, 244 => 49, 241 => 48, 233 => 46, 230 => 45, 227 => 44, 216 => 43, 206 => 27, 199 => 39, 196 => 38, 193 => 37, 187 => 35, 181 => 33, 178 => 32, 172 => 30, 169 => 29, 166 => 28, 155 => 27, 145 => 15, 138 => 23, 135 => 22, 129 => 20, 123 => 18, 120 => 17, 117 => 16, 106 => 15, 92 => 11, 89 => 10, 83 => 8, 77 => 6, 74 => 5, 71 => 4, 61 => 3, 38 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_canonical %}
{% if cbaxModulManufacturers %}
{% if cbaxModulManufacturers.page == \"index\" %}
\t<link rel=\"canonical\" href=\"{{ seoUrl('frontend.cbax.manufacturer.index') }}\" />
{% else %}
<link rel=\"canonical\" href=\"{{ seoUrl('frontend.cbax.manufacturer.detail', { cbaxManufacturerId: cbaxModulManufacturers.manufacturer.id}) }}\" />
{% endif %}
{% else %}
\t{{ parent() }}
{% endif %}
{% endblock %}
{% block layout_head_meta_tags_keywords %}{% apply spaceless %}
{% if cbaxModulManufacturers %}
\t{% if cbaxModulManufacturers.page == \"index\" %}
\t\t\t{{ \"cbaxManufacturer.page.index.metaKeywords\"|trans }}
{% else %}
\t\t\t{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaKeyword|striptags|trim|u.truncate(160) }}
{% endif %}
{% else %}
\t{{ parent() }}
{% endif %}
{% endapply %}{% endblock %}
{% block layout_head_meta_tags_description %}{% apply spaceless %}
{% if cbaxModulManufacturers %}
\t{% if cbaxModulManufacturers.page == \"index\" %}
\t\t\t{{ \"cbaxManufacturer.page.index.metaDescription\"|trans }}
{% else %}
\t{% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaDescription %}
\t\t{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaDescription|striptags|trim|u.truncate(160) }}
{% else %}
\t{{ cbaxModulManufacturers.manufacturer.translated.description|striptags|trim|u.truncate(160) }}
{% endif %}
{% endif %}
{% else %}
\t{{ parent() }}
{% endif %}
{% endapply %}{% endblock %}
{% block layout_head_title_inner %}{% apply spaceless %}
{% if cbaxModulManufacturers %}
\t{% if cbaxModulManufacturers.page == \"index\" %}
\t\t\t{{ \"cbaxManufacturer.page.index.allManufacturers\"|trans }} | {{ metaTitle }}
{% else %}
{% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle %}
{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle|striptags|trim }}
{% else %}
{{ cbaxModulManufacturers.manufacturer.translated.name }} | {{ metaTitle }}
{% endif %}
{% endif %}
{% else %}
\t{{ parent() }}
{% endif %}
{% endapply %}{% endblock %}
", "@CbaxModulManufacturers/storefront/layout/meta.html.twig", "/var/customers/webs/kew/htdocs6/vendor/store.shopware.com/cbaxmodulmanufacturers/src/Resources/views/storefront/layout/meta.html.twig");
}
}