var/cache/dev_h709f23ac6750a26dad7ce174fa60cb15/twig/6c/6caea333b979b1f9ef459c45f858cd78bc28d53f1cf3a18eb1defe51a3c1a4ef.php line 59

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. /* @TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_a25e5c2ee797732513376cb831126311 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_javascript_tracking' => [$this'block_layout_head_javascript_tracking'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/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""@TrustedShopsEasyIntegrationS6/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""@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig"));
  40.         // line 3
  41.         $context["tsConfig"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"trustedShopsApp.config");
  42.         // line 4
  43.         $context["tsChannelId"] = (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse4), "id", [], "any"truetruefalse4) &&  !(null === sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse4), "id", [], "any"falsefalsefalse4)))) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse4), "id", [], "any"falsefalsefalse4)) : (null));
  44.         // line 5
  45.         $context["activeLanguageIsoCode"] = (((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["page"] ?? null), "header", [], "any"falsetruefalse5), "activeLanguage", [], "any"falsetruefalse5), "translationCode", [], "any"falsetruefalse5), "code", [], "any"truetruefalse5) &&  !(null === 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["page"] ?? null), "header", [], "any"falsetruefalse5), "activeLanguage", [], "any"falsetruefalse5), "translationCode", [], "any"falsetruefalse5), "code", [], "any"falsefalsefalse5)))) ? (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["page"] ?? null), "header", [], "any"falsetruefalse5), "activeLanguage", [], "any"falsetruefalse5), "translationCode", [], "any"falsetruefalse5), "code", [], "any"falsefalsefalse5)) : (null));
  46.         // line 6
  47.         $context["tsChannelRef"] = ((($context["tsChannelId"] ?? null) . ".") . ($context["activeLanguageIsoCode"] ?? null));
  48.         // line 2
  49.         $this->parent $this->loadTemplate("@Storefront/storefront/layout/meta.html.twig""@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig"2);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 8
  57.     public function block_layout_head_javascript_tracking($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_javascript_tracking"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_javascript_tracking"));
  64.         // line 9
  65.         echo "    ";
  66.         $this->displayParentBlock("layout_head_javascript_tracking"$context$blocks);
  67.         echo "
  68.     ";
  69.         // line 11
  70.         if ( !(null === ($context["tsChannelId"] ?? null))) {
  71.             // line 12
  72.             echo "        ";
  73.             if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array"falsetruefalse12), ($context["activeLanguageIsoCode"] ?? null), [], "array"falsetruefalse12), "widgets", [], "any"truetruefalse12) &&  !(null === sw_get_attribute($this->env$this->source, (($__internal_compile_0 = (($__internal_compile_1 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any"falsefalsefalse12)))) {
  74.                 // line 13
  75.                 echo "            ";
  76.                 if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array"falsetruefalse13), ($context["activeLanguageIsoCode"] ?? null), [], "array"falsetruefalse13), "widgets", [], "any"truetruefalse13) && ((($__internal_compile_2 = ($context["expectedMapping"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[($context["tsChannelRef"] ?? null)] ?? null) : null) === sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, (($__internal_compile_3 = (($__internal_compile_4 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any"falsefalsefalse13), "eTrustedChannelRef", [], "any"falsefalsefalse13)))) {
  77.                     // line 14
  78.                     echo "                ";
  79.                     $context["widgetConfig"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, (($__internal_compile_5 = (($__internal_compile_6 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any"falsefalsefalse14), "children", [], "any"falsefalsefalse14), 0, [], "any"falsefalsefalse14);
  80.                     // line 15
  81.                     echo "                ";
  82.                     $this->loadTemplate("@TrustedShopsEasyIntegrationS6/storefront/includes/script-assembler.html.twig""@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig"15)->display(twig_array_merge($context, ["scriptConfig" =>                     // line 16
  83. ($context["widgetConfig"] ?? null)]));
  84.                     // line 18
  85.                     echo "            ";
  86.                 }
  87.                 // line 19
  88.                 echo "        ";
  89.             }
  90.             // line 20
  91.             echo "    ";
  92.         }
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.         
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  97.     }
  98.     public function getTemplateName()
  99.     {
  100.         return "@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig";
  101.     }
  102.     public function isTraitable()
  103.     {
  104.         return false;
  105.     }
  106.     public function getDebugInfo()
  107.     {
  108.         return array (  104 => 20,  101 => 19,  98 => 18,  96 => 16,  94 => 15,  91 => 14,  88 => 13,  85 => 12,  83 => 11,  77 => 9,  67 => 8,  56 => 2,  54 => 6,  52 => 5,  50 => 4,  48 => 3,  35 => 2,);
  109.     }
  110.     public function getSourceContext()
  111.     {
  112.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  113. {% set tsConfig = config('trustedShopsApp.config') %}
  114. {% set tsChannelId = context.salesChannel.id ?? null %}
  115. {% set activeLanguageIsoCode = page.header.activeLanguage.translationCode.code ?? null %}
  116. {% set tsChannelRef = tsChannelId ~ '.' ~ activeLanguageIsoCode %}
  117. {% block layout_head_javascript_tracking %}
  118.     {{ parent() }}
  119.     {% if tsChannelId is not null %}
  120.         {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and tsConfig[tsChannelId][activeLanguageIsoCode].widgets is not null %}
  121.             {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].widgets.eTrustedChannelRef %}
  122.                 {% set widgetConfig = tsConfig[tsChannelId][activeLanguageIsoCode].widgets.children.0 %}
  123.                 {% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
  124.                     scriptConfig: widgetConfig
  125.                 } %}
  126.             {% endif %}
  127.         {% endif %}
  128.     {% endif %}
  129. {% endblock %}""@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig""/var/customers/webs/fporzellan/htdocs/custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/layout/meta.html.twig");
  130.     }
  131. }