var/cache/dev_h709f23ac6750a26dad7ce174fa60cb15/twig/42/426839e2812b46ce7312f838ac42f526f00d6a6fc9b41d24cd5dd11280d94ceb.php line 40

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/base.html.twig */
  16. class __TwigTemplate_0830bfd3fd747df07befb8d2f00f01cb 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.             'base_body_script' => [$this'block_base_body_script'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/base.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/base.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/base.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 7
  49.         $context["expectedMapping"] = [];
  50.         // line 9
  51.         $context['_parent'] = $context;
  52.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["tsConfig"] ?? null), "mappedChannels", [], "any"falsefalsefalse9));
  53.         foreach ($context['_seq'] as $context["_key"] => $context["mappedChannel"]) {
  54.             // line 10
  55.             $context["expectedMapping"] = twig_array_merge(($context["expectedMapping"] ?? null), [sw_get_attribute($this->env$this->source$context["mappedChannel"], "salesChannelRef", [], "any"falsefalsefalse10) => sw_get_attribute($this->env$this->source$context["mappedChannel"], "eTrustedChannelRef", [], "any"falsefalsefalse10)]);
  56.         }
  57.         $_parent $context['_parent'];
  58.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mappedChannel'], $context['_parent'], $context['loop']);
  59.         $context array_intersect_key($context$_parent) + $_parent;
  60.         // line 2
  61.         $this->parent $this->loadTemplate("@Storefront/storefront/base.html.twig""@TrustedShopsEasyIntegrationS6/storefront/base.html.twig"2);
  62.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.     }
  68.     // line 13
  69.     public function block_base_body_script($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  76.         // line 14
  77.         echo "    ";
  78.         $this->displayParentBlock("base_body_script"$context$blocks);
  79.         echo "
  80.     ";
  81.         // line 16
  82.         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"falsetruefalse16), ($context["activeLanguageIsoCode"] ?? null), [], "array"falsetruefalse16), "trustbadgeConfiguration", [], "any"truetruefalse16) && ((($__internal_compile_0 = ($context["expectedMapping"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["tsChannelRef"] ?? null)] ?? null) : null) === sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, (($__internal_compile_1 = (($__internal_compile_2 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "trustbadgeConfiguration", [], "any"falsefalsefalse16), "eTrustedChannelRef", [], "any"falsefalsefalse16)))) {
  83.             // line 17
  84.             echo "        ";
  85.             $context["tsTrustBadgeConfiguration"] = 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), "trustbadgeConfiguration", [], "any"falsefalsefalse17), "children", [], "any"falsefalsefalse17);
  86.             // line 18
  87.             echo "
  88.         ";
  89.             // line 19
  90.             $this->loadTemplate("@TrustedShopsEasyIntegrationS6/storefront/includes/script-assembler.html.twig""@TrustedShopsEasyIntegrationS6/storefront/base.html.twig"19)->display(twig_array_merge($context, ["scriptConfig" => (($__internal_compile_5 =             // line 20
  91. ($context["tsTrustBadgeConfiguration"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[0] ?? null) : null)]));
  92.             // line 22
  93.             echo "    ";
  94.         }
  95.         
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  97.         
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99.     }
  100.     public function getTemplateName()
  101.     {
  102.         return "@TrustedShopsEasyIntegrationS6/storefront/base.html.twig";
  103.     }
  104.     public function isTraitable()
  105.     {
  106.         return false;
  107.     }
  108.     public function getDebugInfo()
  109.     {
  110.         return array (  106 => 22,  104 => 20,  103 => 19,  100 => 18,  97 => 17,  95 => 16,  89 => 14,  79 => 13,  68 => 2,  62 => 10,  58 => 9,  56 => 7,  54 => 6,  52 => 5,  50 => 4,  48 => 3,  35 => 2,);
  111.     }
  112.     public function getSourceContext()
  113.     {
  114.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  115. {% set tsConfig = config('trustedShopsApp.config') %}
  116. {% set tsChannelId = context.salesChannel.id ?? null %}
  117. {% set activeLanguageIsoCode = page.header.activeLanguage.translationCode.code ?? null %}
  118. {% set tsChannelRef = tsChannelId ~ '.' ~ activeLanguageIsoCode %}
  119. {% set expectedMapping = [] %}
  120. {% foreach tsConfig.mappedChannels as mappedChannel %}
  121.     {% set expectedMapping = expectedMapping|merge({ (mappedChannel.salesChannelRef): mappedChannel.eTrustedChannelRef}) %}
  122. {% endforeach %}
  123. {% block base_body_script %}
  124.     {{ parent() }}
  125.     {% if tsConfig[tsChannelId][activeLanguageIsoCode].trustbadgeConfiguration is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].trustbadgeConfiguration.eTrustedChannelRef %}
  126.         {% set tsTrustBadgeConfiguration = tsConfig[tsChannelId][activeLanguageIsoCode].trustbadgeConfiguration.children %}
  127.         {% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
  128.             scriptConfig: tsTrustBadgeConfiguration[0]
  129.         } %}
  130.     {% endif %}
  131. {% endblock %}
  132. {#
  133. {% block base_main_inner %}
  134.     {{ parent() }}
  135.     {% if tsChannelId is not null %}
  136.         {% if tsConfig[tsChannelId].productReviewActive is defined and tsConfig[tsChannelId].productReviewActive is not null %}
  137.             <!-- added by Trusted Shops app: Start -->
  138.             <div class=\"ts-margin-container container\">
  139.                 <div class=\"row\">
  140.                     <div class=\"col-12\">
  141.                         {% sw_include '@Storefront/storefront/includes/widget-assembler.html.twig' with {
  142.                             widgets: tsConfig[tsChannelId].widgets.children.0.children,
  143.                             product: product,
  144.                             widgetLocationId: 'wdg-loc-lrm'
  145.                         } %}
  146.                     </div>
  147.                 </div>
  148.             </div>
  149.             <!-- End -->
  150.         {% endif %}
  151.     {% endif %}
  152. {% endblock %}#}
  153. ""@TrustedShopsEasyIntegrationS6/storefront/base.html.twig""/var/customers/webs/fporzellan/htdocs/custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/base.html.twig");
  154.     }
  155. }