var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/22/2281634f8fced0c9f220c77345de42169672c4e1d2c674a079926449ccdf9709.php line 51

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. /* @HuebertSeoFaq/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_ccf0ab200f78b49182dba79459324ade 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_meta_tags' => [$this'block_layout_head_meta_tags'],
  26.             'layout_head_title_inner' => [$this'block_layout_head_title_inner'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@DtgsGoogleTagManagerSw6/storefront/layout/meta.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@HuebertSeoFaq/storefront/layout/meta.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@HuebertSeoFaq/storefront/layout/meta.html.twig"));
  41.         $this->parent $this->loadTemplate("@DtgsGoogleTagManagerSw6/storefront/layout/meta.html.twig""@HuebertSeoFaq/storefront/layout/meta.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_layout_head_meta_tags($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags"));
  56.         // line 4
  57.         echo "    ";
  58.         if (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse4)) {
  59.             // line 5
  60.             echo "        ";
  61.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse5), "metaDescription", [], "any"falsefalsefalse5)) {
  62.                 // line 6
  63.                 echo "            ";
  64.                 $context["metaDescription"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse6), "metaDescription", [], "any"falsefalsefalse6);
  65.                 // line 7
  66.                 echo "        ";
  67.             } else {
  68.                 // line 8
  69.                 echo "            ";
  70.                 $context["metaDescription"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"HuebertSeoFaq.config.faqMetaDescription");
  71.                 // line 9
  72.                 echo "        ";
  73.             }
  74.             // line 10
  75.             echo "        ";
  76.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse10), "metaTitle", [], "any"falsefalsefalse10)) {
  77.                 // line 11
  78.                 echo "            ";
  79.                 $context["metaTitle"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse11), "metaTitle", [], "any"falsefalsefalse11);
  80.                 // line 12
  81.                 echo "        ";
  82.             } else {
  83.                 // line 13
  84.                 echo "            ";
  85.                 $context["metaTitle"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"HuebertSeoFaq.config.faqMetaTitle");
  86.                 // line 14
  87.                 echo "        ";
  88.             }
  89.             // line 15
  90.             echo "        ";
  91.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse15), "metaKeywords", [], "any"falsefalsefalse15)) {
  92.                 // line 16
  93.                 echo "            ";
  94.                 $context["metaKeywords"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse16), "metaKeywords", [], "any"falsefalsefalse16);
  95.                 // line 17
  96.                 echo "        ";
  97.             }
  98.             // line 18
  99.             echo "    ";
  100.         } elseif ((($context["controllerName"] ?? null) == "SeoFaq")) {
  101.             // line 19
  102.             echo "        ";
  103.             $context["metaDescription"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"HuebertSeoFaq.config.faqMetaDescription");
  104.             // line 20
  105.             echo "        <link rel=\"canonical\" href=\"";
  106.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse20), "canonical", [], "any"falsefalsefalse20), "html"nulltrue);
  107.             echo "\"/>
  108.     ";
  109.         }
  110.         // line 22
  111.         echo "    ";
  112.         $this->displayParentBlock("layout_head_meta_tags"$context$blocks);
  113.         echo "
  114. ";
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.     }
  120.     // line 25
  121.     public function block_layout_head_title_inner($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_title_inner"));
  128.         ob_start();
  129.         // line 26
  130.         echo "    ";
  131.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse26), "metaTitle", [], "any"falsefalsefalse26)) {
  132.             // line 27
  133.             echo "        ";
  134.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse27), "metaTitle", [], "any"falsefalsefalse27), "html"nulltrue);
  135.             echo "
  136.     ";
  137.         } elseif (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 28
  138. ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse28), "question", [], "any"falsefalsefalse28)) {
  139.             // line 29
  140.             echo "        ";
  141.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse29), "question", [], "any"falsefalsefalse29), "html"nulltrue);
  142.             echo "
  143.     ";
  144.         } elseif (((        // line 30
  145. ($context["controllerName"] ?? null) == "SeoFaq") && (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "questionSpecific", [], "any"falsefalsefalse30) == null))) {
  146.             // line 31
  147.             echo "        ";
  148.             echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"HuebertSeoFaq.config.faqMetaTitle"), "html"nulltrue);
  149.             echo "
  150.     ";
  151.         } else {
  152.             // line 33
  153.             echo "        ";
  154.             echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  155.             echo "
  156.     ";
  157.         }
  158.         $___internal_parse_2_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  159.         // line 25
  160.         echo twig_spaceless($___internal_parse_2_);
  161.         
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  163.         
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "@HuebertSeoFaq/storefront/layout/meta.html.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         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,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  181. {% block layout_head_meta_tags %}
  182.     {% if page.questionSpecific %}
  183.         {% if page.questionSpecific.metaDescription %}
  184.             {% set metaDescription = page.questionSpecific.metaDescription %}
  185.         {% else %}
  186.             {% set metaDescription = config('HuebertSeoFaq.config.faqMetaDescription') %}
  187.         {% endif %}
  188.         {% if page.questionSpecific.metaTitle %}
  189.             {% set metaTitle = page.questionSpecific.metaTitle %}
  190.         {% else %}
  191.             {% set metaTitle = config('HuebertSeoFaq.config.faqMetaTitle') %}
  192.         {% endif %}
  193.         {% if page.questionSpecific.metaKeywords %}
  194.             {% set metaKeywords = page.questionSpecific.metaKeywords %}
  195.         {% endif %}
  196.     {% elseif controllerName == \"SeoFaq\" %}
  197.         {% set metaDescription = config('HuebertSeoFaq.config.faqMetaDescription') %}
  198.         <link rel=\"canonical\" href=\"{{ page.metaInformation.canonical }}\"/>
  199.     {% endif %}
  200.     {{ parent() }}
  201. {% endblock %}
  202. {% block layout_head_title_inner %}{% apply spaceless %}
  203.     {% if page.questionSpecific.metaTitle %}
  204.         {{ page.questionSpecific.metaTitle }}
  205.     {% elseif page.questionSpecific.question %}
  206.         {{ page.questionSpecific.question }}
  207.     {% elseif controllerName == \"SeoFaq\" and page.questionSpecific == null%}
  208.         {{ config('HuebertSeoFaq.config.faqMetaTitle')}}
  209.     {% else %}
  210.         {{ metaTitle }}
  211.     {% endif %}
  212. {% endapply %}{% endblock %}
  213. ""@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");
  214.     }
  215. }