var/cache/dev_h709f23ac6750a26dad7ce174fa60cb15/twig/35/357d847d1413c11edf6150c44c9927abb2e4f2d9f8a226a2890eb642e3f8f117.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. /* @TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig */
  16. class __TwigTemplate_bd0e2c5427c0767c511705f630dfc31c 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_head' => [$this'block_base_head'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/page/content/product-detail.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/page/content/product-detail.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/page/content/product-detail.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/product-detail.html.twig""@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.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_base_head($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""base_head"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("base_head"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 6
  61.         echo "    ";
  62.         $context["tsChannelId"] = (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse6), "id", [], "any"truetruefalse6) &&  !(null === sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse6), "id", [], "any"falsefalsefalse6)))) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse6), "id", [], "any"falsefalsefalse6)) : (null));
  63.         // line 7
  64.         echo "
  65.     ";
  66.         // line 8
  67.         if ( !(null === ($context["tsChannelId"] ?? null))) {
  68.             // line 9
  69.             echo "        ";
  70.             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"falsetruefalse9), ($context["activeLanguageIsoCode"] ?? null), [], "array"falsetruefalse9), "widgets", [], "any"truetruefalse9) &&  !(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"falsefalsefalse9)))) {
  71.                 // line 10
  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"falsetruefalse10), ($context["activeLanguageIsoCode"] ?? null), [], "array"falsetruefalse10), "widgets", [], "any"truetruefalse10) && ((($__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"falsefalsefalse10), "eTrustedChannelRef", [], "any"falsefalsefalse10)))) {
  74.                     // line 11
  75.                     echo "                ";
  76.                     $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"falsefalsefalse11), "children", [], "any"falsefalsefalse11), 0, [], "any"falsefalsefalse11);
  77.                     // line 12
  78.                     echo "                ";
  79.                     $this->loadTemplate("@TrustedShopsEasyIntegrationS6/storefront/includes/script-assembler.html.twig""@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig"12)->display(twig_array_merge($context, ["scriptConfig" =>                     // line 13
  80. ($context["widgetConfig"] ?? null)]));
  81.                     // line 15
  82.                     echo "            ";
  83.                 }
  84.                 // line 16
  85.                 echo "        ";
  86.             }
  87.             // line 17
  88.             echo "    ";
  89.         }
  90.         
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.     }
  95.     public function getTemplateName()
  96.     {
  97.         return "@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig";
  98.     }
  99.     public function isTraitable()
  100.     {
  101.         return false;
  102.     }
  103.     public function getDebugInfo()
  104.     {
  105.         return array (  100 => 17,  97 => 16,  94 => 15,  92 => 13,  90 => 12,  87 => 11,  84 => 10,  81 => 9,  79 => 8,  76 => 7,  73 => 6,  68 => 4,  58 => 3,  35 => 2,);
  106.     }
  107.     public function getSourceContext()
  108.     {
  109.         return new Source("{% sw_extends '@Storefront/storefront/page/content/product-detail.html.twig' %}
  110. {% block base_head %}
  111.     {{ parent() }}
  112.     {# {% set tsConfig = config('trustedShopsApp.config') %} #}
  113.     {% set tsChannelId = context.salesChannel.id ?? null %}
  114.     {% if tsChannelId is not null %}
  115.         {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and tsConfig[tsChannelId][activeLanguageIsoCode].widgets is not null %}
  116.             {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].widgets.eTrustedChannelRef %}
  117.                 {% set widgetConfig = tsConfig[tsChannelId][activeLanguageIsoCode].widgets.children.0 %}
  118.                 {% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
  119.                     scriptConfig: widgetConfig
  120.                 } %}
  121.             {% endif %}
  122.         {% endif %}
  123.     {% endif %}
  124. {% endblock %}
  125. ""@TrustedShopsEasyIntegrationS6/storefront/page/content/product-detail.html.twig""/var/customers/webs/fporzellan/htdocs/custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/page/content/product-detail.html.twig");
  126.     }
  127. }