var/cache/dev_h5b02c48344407d68d61eb74a0cdcd8b0/twig/a0/a06cc9c43c2a8bcb1b1b6dcb6faf0ddd5fedf09824bb1690513643c834767037.php line 50

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. /* @GrimmTheme/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_f14f55caca6c212dfa80a8ddf12c8b89 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_title_inner' => [$this'block_layout_head_title_inner'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@DtgsGoogleTagManagerSw6/storefront/layout/meta.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@GrimmTheme/storefront/layout/meta.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@GrimmTheme/storefront/layout/meta.html.twig"));
  40.         $this->parent $this->loadTemplate("@DtgsGoogleTagManagerSw6/storefront/layout/meta.html.twig""@GrimmTheme/storefront/layout/meta.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_layout_head_title_inner($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  55.         ob_start();
  56.         // line 4
  57.         echo "    ";
  58.         if (($context["cbaxModulManufacturers"] ?? null)) {
  59.             // line 5
  60.             echo "        ";
  61.             if ((sw_get_attribute($this->env$this->source, ($context["cbaxModulManufacturers"] ?? null), "page", [], "any"falsefalsefalse5) == "index")) {
  62.                 // line 6
  63.                 echo "            ";
  64.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cbaxManufacturer.page.index.metaTitle"), "html"nulltrue);
  65.                 echo "
  66.         ";
  67.             } else {
  68.                 // line 8
  69.                 echo "            ";
  70.                 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"falsefalsefalse8), "translated", [], "any"falsefalsefalse8), "customFields", [], "any"falsefalsefalse8), "cbaxManufacturerMetaTitle", [], "any"falsefalsefalse8)) {
  71.                     // line 9
  72.                     echo "                ";
  73.                     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"falsefalsefalse9), "translated", [], "any"falsefalsefalse9), "customFields", [], "any"falsefalsefalse9), "cbaxManufacturerMetaTitle", [], "any"falsefalsefalse9))), "html"nulltrue);
  74.                     echo "
  75.             ";
  76.                 } else {
  77.                     // line 11
  78.                     echo "                ";
  79.                     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"falsefalsefalse11), "translated", [], "any"falsefalsefalse11), "name", [], "any"falsefalsefalse11), "html"nulltrue);
  80.                     echo " | ";
  81.                     echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  82.                     echo "
  83.             ";
  84.                 }
  85.                 // line 13
  86.                 echo "        ";
  87.             }
  88.             // line 14
  89.             echo "    ";
  90.         } else {
  91.             // line 15
  92.             echo "        ";
  93.             $this->displayParentBlock("layout_head_title_inner"$context$blocks);
  94.             echo "
  95.     ";
  96.         }
  97.         $___internal_parse_1_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  98.         // line 3
  99.         echo twig_spaceless($___internal_parse_1_);
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.     }
  105.     public function getTemplateName()
  106.     {
  107.         return "@GrimmTheme/storefront/layout/meta.html.twig";
  108.     }
  109.     public function isTraitable()
  110.     {
  111.         return false;
  112.     }
  113.     public function getDebugInfo()
  114.     {
  115.         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,);
  116.     }
  117.     public function getSourceContext()
  118.     {
  119.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  120. {% block layout_head_title_inner %}{% apply spaceless %}
  121.     {% if cbaxModulManufacturers %}
  122.         {% if cbaxModulManufacturers.page == \"index\" %}
  123.             {{ 'cbaxManufacturer.page.index.metaTitle' | trans }}
  124.         {% else %}
  125.             {% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle %}
  126.                 {{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle|striptags|trim }}
  127.             {% else %}
  128.                 {{ cbaxModulManufacturers.manufacturer.translated.name }} | {{ metaTitle }}
  129.             {% endif %}
  130.         {% endif %}
  131.     {% else %}
  132.         {{ parent() }}
  133.     {% endif %}
  134. {% endapply %}{% endblock %}
  135. ""@GrimmTheme/storefront/layout/meta.html.twig""/var/www/staging1.grimm-gastrobedarf.de/custom/plugins/GrimmTheme/src/Resources/views/storefront/layout/meta.html.twig");
  136.     }
  137. }