var/cache/dev_h61dab171fcb3dd073fc68bfbeb4d9256/twig/95/95a5fd86ec3f1f759b43db15541444fd8d457e353986d580db12d83f2f7910e3.php line 53

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. /* @CbaxModulManufacturers/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_95c53e312671047aff4db6337210f0e5 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_canonical' => [$this'block_layout_head_canonical'],
  26.             'layout_head_meta_tags_keywords' => [$this'block_layout_head_meta_tags_keywords'],
  27.             'layout_head_meta_tags_description' => [$this'block_layout_head_meta_tags_description'],
  28.             'layout_head_title_inner' => [$this'block_layout_head_title_inner'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 2
  34.         return "@XantenLastSeenProduct/storefront/layout/meta.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CbaxModulManufacturers/storefront/layout/meta.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CbaxModulManufacturers/storefront/layout/meta.html.twig"));
  43.         $this->parent $this->loadTemplate("@XantenLastSeenProduct/storefront/layout/meta.html.twig""@CbaxModulManufacturers/storefront/layout/meta.html.twig"2);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     public function block_layout_head_canonical($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  58.         // line 4
  59.         echo "    ";
  60.         if (($context["cbaxModulManufacturers"] ?? null)) {
  61.             // line 5
  62.             echo "        ";
  63.             if ((sw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any"falsefalsefalse5) == "index")) {
  64.                 // line 6
  65.                 echo "        \t<link rel=\"canonical\" href=\"";
  66.                 echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.cbax.manufacturer.index");
  67.                 echo "\" />
  68.         ";
  69.             } else {
  70.                 // line 8
  71.                 echo "            <link rel=\"canonical\" href=\"";
  72.                 echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.cbax.manufacturer.detail", ["id" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse8), "id", [], "any"falsefalsefalse8)]), "html"nulltrue);
  73.                 echo "\" />
  74.         ";
  75.             }
  76.             // line 10
  77.             echo "    ";
  78.         } else {
  79.             // line 11
  80.             echo "    \t";
  81.             $this->displayParentBlock("layout_head_canonical"$context$blocks);
  82.             echo "
  83.     ";
  84.         }
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.     }
  90.     // line 15
  91.     public function block_layout_head_meta_tags_keywords($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_keywords"));
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_keywords"));
  98.         ob_start();
  99.         // line 16
  100.         echo "    ";
  101.         if (($context["cbaxModulManufacturers"] ?? null)) {
  102.             // line 17
  103.             echo "    \t";
  104.             if ((sw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any"falsefalsefalse17) == "index")) {
  105.                 // line 18
  106.                 echo "\t\t\t";
  107.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.metaKeywords"), "html"nulltrue);
  108.                 echo "
  109.         ";
  110.             } else {
  111.                 // line 20
  112.                 echo "\t\t\t";
  113.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse20), "translated", [], "any"falsefalsefalse20), "customFields", [], "any"falsefalsefalse20), "cbaxManufacturerMetaKeyword", [], "any"falsefalsefalse20)))), "truncate", [=> 160], "method"falsefalsefalse20), "html"nulltrue);
  114.                 echo "
  115.         ";
  116.             }
  117.             // line 22
  118.             echo "    ";
  119.         } else {
  120.             // line 23
  121.             echo "    \t";
  122.             $this->displayParentBlock("layout_head_meta_tags_keywords"$context$blocks);
  123.             echo "
  124.     ";
  125.         }
  126.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  127.         // line 15
  128.         echo twig_spaceless($___internal_parse_0_);
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.     }
  134.     // line 27
  135.     public function block_layout_head_meta_tags_description($context, array $blocks = [])
  136.     {
  137.         $macros $this->macros;
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_description"));
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_description"));
  142.         ob_start();
  143.         // line 28
  144.         echo "    ";
  145.         if (($context["cbaxModulManufacturers"] ?? null)) {
  146.             // line 29
  147.             echo "    \t";
  148.             if ((sw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any"falsefalsefalse29) == "index")) {
  149.                 // line 30
  150.                 echo "\t\t\t";
  151.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.metaDescription"), "html"nulltrue);
  152.                 echo "
  153.         ";
  154.             } else {
  155.                 // line 32
  156.                 echo "        \t";
  157.                 if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse32), "translated", [], "any"falsefalsefalse32), "customFields", [], "any"falsefalsefalse32), "cbaxManufacturerMetaDescription", [], "any"falsefalsefalse32)) {
  158.                     // line 33
  159.                     echo "        \t\t";
  160.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse33), "translated", [], "any"falsefalsefalse33), "customFields", [], "any"falsefalsefalse33), "cbaxManufacturerMetaDescription", [], "any"falsefalsefalse33)))), "truncate", [=> 160], "method"falsefalsefalse33), "html"nulltrue);
  161.                     echo "
  162.             ";
  163.                 } else {
  164.                     // line 35
  165.                     echo "            \t";
  166.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse35), "translated", [], "any"falsefalsefalse35), "description", [], "any"falsefalsefalse35)))), "truncate", [=> 160], "method"falsefalsefalse35), "html"nulltrue);
  167.                     echo "
  168.             ";
  169.                 }
  170.                 // line 37
  171.                 echo "        ";
  172.             }
  173.             // line 38
  174.             echo "    ";
  175.         } else {
  176.             // line 39
  177.             echo "    \t";
  178.             $this->displayParentBlock("layout_head_meta_tags_description"$context$blocks);
  179.             echo "
  180.     ";
  181.         }
  182.         $___internal_parse_1_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  183.         // line 27
  184.         echo twig_spaceless($___internal_parse_1_);
  185.         
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  187.         
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  189.     }
  190.     // line 43
  191.     public function block_layout_head_title_inner($context, array $blocks = [])
  192.     {
  193.         $macros $this->macros;
  194.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  195.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  197.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  198.         ob_start();
  199.         // line 44
  200.         echo "    ";
  201.         if (($context["cbaxModulManufacturers"] ?? null)) {
  202.             // line 45
  203.             echo "    \t";
  204.             if ((sw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any"falsefalsefalse45) == "index")) {
  205.                 // line 46
  206.                 echo "\t\t\t";
  207.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.allManufacturers"), "html"nulltrue);
  208.                 echo " | ";
  209.                 echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  210.                 echo "
  211.         ";
  212.             } else {
  213.                 // line 48
  214.                 echo "            ";
  215.                 if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse48), "translated", [], "any"falsefalsefalse48), "customFields", [], "any"falsefalsefalse48), "cbaxManufacturerMetaTitle", [], "any"falsefalsefalse48)) {
  216.                     // line 49
  217.                     echo "                ";
  218.                     echo sw_escape_filter($this->envtwig_trim_filter(twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse49), "translated", [], "any"falsefalsefalse49), "customFields", [], "any"falsefalsefalse49), "cbaxManufacturerMetaTitle", [], "any"falsefalsefalse49))), "html"nulltrue);
  219.                     echo "
  220.             ";
  221.                 } else {
  222.                     // line 51
  223.                     echo "                ";
  224.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "manufacturer", [], "any"falsefalsefalse51), "translated", [], "any"falsefalsefalse51), "name", [], "any"falsefalsefalse51), "html"nulltrue);
  225.                     echo " | ";
  226.                     echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  227.                     echo "
  228.             ";
  229.                 }
  230.                 // line 53
  231.                 echo "        ";
  232.             }
  233.             // line 54
  234.             echo "    ";
  235.         } else {
  236.             // line 55
  237.             echo "    \t";
  238.             $this->displayParentBlock("layout_head_title_inner"$context$blocks);
  239.             echo "
  240.     ";
  241.         }
  242.         $___internal_parse_2_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  243.         // line 43
  244.         echo twig_spaceless($___internal_parse_2_);
  245.         
  246.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  247.         
  248.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  249.     }
  250.     public function getTemplateName()
  251.     {
  252.         return "@CbaxModulManufacturers/storefront/layout/meta.html.twig";
  253.     }
  254.     public function isTraitable()
  255.     {
  256.         return false;
  257.     }
  258.     public function getDebugInfo()
  259.     {
  260.         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,);
  261.     }
  262.     public function getSourceContext()
  263.     {
  264.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  265. {% block layout_head_canonical %}
  266.     {% if cbaxModulManufacturers %}
  267.         {% if cbaxModulManufacturers.page == \"index\" %}
  268.         \t<link rel=\"canonical\" href=\"{{ seoUrl('frontend.cbax.manufacturer.index') }}\" />
  269.         {%  else %}
  270.             <link rel=\"canonical\" href=\"{{ seoUrl('frontend.cbax.manufacturer.detail', { id: cbaxModulManufacturers.manufacturer.id}) }}\" />
  271.         {% endif %}
  272.     {% else %}
  273.     \t{{ parent() }}
  274.     {% endif %}
  275. {% endblock %}
  276. {% block layout_head_meta_tags_keywords %}{% apply spaceless %}
  277.     {% if cbaxModulManufacturers %}
  278.     \t{% if cbaxModulManufacturers.page == \"index\" %}
  279. \t\t\t{{ \"cbaxManufacturer.page.index.metaKeywords\"|trans }}
  280.         {%  else %}
  281. \t\t\t{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaKeyword|striptags|trim|u.truncate(160) }}
  282.         {% endif %}
  283.     {% else %}
  284.     \t{{ parent() }}
  285.     {% endif %}
  286. {% endapply %}{% endblock %}
  287. {% block layout_head_meta_tags_description %}{% apply spaceless %}
  288.     {% if cbaxModulManufacturers %}
  289.     \t{% if cbaxModulManufacturers.page == \"index\" %}
  290. \t\t\t{{ \"cbaxManufacturer.page.index.metaDescription\"|trans }}
  291.         {% else %}
  292.         \t{% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaDescription %}
  293.         \t\t{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaDescription|striptags|trim|u.truncate(160) }}
  294.             {% else %}
  295.             \t{{ cbaxModulManufacturers.manufacturer.translated.description|striptags|trim|u.truncate(160) }}
  296.             {% endif %}
  297.         {% endif %}
  298.     {% else %}
  299.     \t{{ parent() }}
  300.     {% endif %}
  301. {% endapply %}{% endblock %}
  302. {% block layout_head_title_inner %}{% apply spaceless %}
  303.     {% if cbaxModulManufacturers %}
  304.     \t{% if cbaxModulManufacturers.page == \"index\" %}
  305. \t\t\t{{ \"cbaxManufacturer.page.index.allManufacturers\"|trans }} | {{ metaTitle }}
  306.         {% else %}
  307.             {% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle %}
  308.                 {{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle|striptags|trim }}
  309.             {% else %}
  310.                 {{ cbaxModulManufacturers.manufacturer.translated.name }} | {{ metaTitle }}
  311.             {% endif %}
  312.         {% endif %}
  313.     {% else %}
  314.     \t{{ parent() }}
  315.     {% endif %}
  316. {% endapply %}{% endblock %}""@CbaxModulManufacturers/storefront/layout/meta.html.twig""/usr/www/users/betten/betten-abc-alt-und-tot.de/custom/plugins/CbaxModulManufacturers/src/Resources/views/storefront/layout/meta.html.twig");
  317.     }
  318. }